mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
import mesh from other file format from python
This commit is contained in:
parent
350aaf4b7a
commit
eaf08e5c6f
@ -898,8 +898,21 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
}))
|
||||
|
||||
;
|
||||
|
||||
|
||||
m.def("ImportMesh", [](const string& filename)
|
||||
{
|
||||
auto mesh = make_shared<Mesh>();
|
||||
ReadFile(*mesh, filename);
|
||||
return mesh;
|
||||
}, py::arg("filename"),
|
||||
R"delimiter(Import mesh from other file format, supported file formats are:
|
||||
Neutral format (*.mesh, *.emt)
|
||||
Surface file (*.surf)
|
||||
Universal format (*.unv)
|
||||
Olaf format (*.emt)
|
||||
Tet format (*.tet)
|
||||
Pro/ENGINEER format (*.fnf)
|
||||
)delimiter");
|
||||
py::enum_<MESHING_STEP>(m,"MeshingStep")
|
||||
.value("MESHEDGES",MESHCONST_MESHEDGES)
|
||||
.value("MESHSURFACE",MESHCONST_OPTSURFACE)
|
||||
|
Loading…
Reference in New Issue
Block a user