Broken Polygon support in SWIG

Issue #80 resolved
Francesco Ballarin created an issue

Hi, I think that the fix of issue #79 has broken Polygon support in SWIG wrapping.

The following code

from dolfin import *
from mshr import *

domain = Polygon([Point(0, 0), Point(1, 1), Point(1, 1), Point(0, 1)])
mesh = generate_mesh(domain, 10)

fails with

    _mshr.Polygon_swiginit(self, _mshr.new_Polygon(vertices))
TypeError: in method 'new_Polygon', argument 1 of type 'std::vector< dolfin::Point > const &'

but used to work in previous versions

Comments (4)

  1. Benjamin Dam Kehlet

    And appararently all tests using the Polygon class are in c++... I'll fix it (and add python tests)

  2. Log in to comment