Broken Polygon support in SWIG
Issue #80
resolved
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)
-
-
Add test case creates Polygon from python (currently fails). Ref issue
#80.→ <<cset fb2c60d530c8>>
-
- changed status to resolved
This should be fixed now. Please try it out and report back if you encounter problems!
-
reporter Thanks! I have tested it successfully, no further problems.
- Log in to comment
And appararently all tests using the Polygon class are in c++... I'll fix it (and add python tests)