mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 14:40:35 +05:00
assign default geometry in the (Python) mesh ctor
This commit is contained in:
parent
2e243a7d07
commit
ec39a51e92
@ -443,6 +443,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
auto mesh = make_shared<Mesh>();
|
auto mesh = make_shared<Mesh>();
|
||||||
mesh -> SetDimension(dim);
|
mesh -> SetDimension(dim);
|
||||||
SetGlobalMesh(mesh); // for visualization
|
SetGlobalMesh(mesh); // for visualization
|
||||||
|
mesh -> SetGeometry (make_shared<NetgenGeometry>());
|
||||||
return mesh;
|
return mesh;
|
||||||
} ),
|
} ),
|
||||||
py::arg("dim")=3
|
py::arg("dim")=3
|
||||||
|
Loading…
Reference in New Issue
Block a user