Surface Mesh
To save a triangulated mesh of the geometry surface, users can use the domain member function saveSurfaceMesh
. The surface mesh also contains material information is the optional parameter addMaterialIds
is set to true
.
Example usage:
C++
auto domain = ps::SmartPointer<ps::Domain<NumericType, D>>::New();
...
// create geometry in domain
...
domain->saveSurfaceMesh("fileName", true);
Python:
domain = vps.Domain()
...
# create geometry in domain
...
domain.saveSurfaceMesh(fileName="fileName", addMaterialIds=True)