assign default geometry in the (Python) mesh ctor

This commit is contained in:
Joachim Schöberl 2017-09-22 12:39:57 +02:00
parent 2e243a7d07
commit ec39a51e92

View File

@ -443,6 +443,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
auto mesh = make_shared<Mesh>();
mesh -> SetDimension(dim);
SetGlobalMesh(mesh); // for visualization
mesh -> SetGeometry (make_shared<NetgenGeometry>());
return mesh;
} ),
py::arg("dim")=3