Hi!
I tried generate mesh using this tutorial 10. Generate mesh and got error
'PolygonalMeshGenerator' is not defined
from dolfin import *
if not has_cgal():
print "DOLFIN must be compiled with CGAL to run this demo."
exit(0)
# Create empty Mesh
mesh = Mesh()
# Create list of polygonal domain vertices
domain_vertices = [Point(0.0, 0.0),
Point(1.0, 0.0),
Point(1.0, 1.0),
Point(0.0, 1.0),
Point(0.0, 0.0)]
# Generate mesh and plot
PolygonalMeshGenerator.generate(mesh, domain_vertices, 1.0);
The error:
Traceback (most recent call last):
File "mesh2-1.py", line 18, in <module>
PolygonalMeshGenerator.generate(mesh, domain_vertices, 1.0);
NameError: name 'PolygonalMeshGenerator' is not defined
I use Finics version 1.0 (Windows).
Thanks in advance!