SurfaceMesh¶
- class pygamer.surfacemesh.SurfaceMesh¶
Python wrapper around a
gamer::SurfaceMesh
.Methods
SurfaceMesh.__init__
(self)Default constructor.
SurfaceMesh.addVertex
(*args, **kwargs)Overloaded function.
Check consistency and assign Face orientations.
Clear orientation of all faces.
SurfaceMesh.coarse
(self, rate, flatRate, …)Coarsen a surface mesh.
SurfaceMesh.coarse_dense
(self, rate, …)Coarsen dense regions of a surface mesh.
SurfaceMesh.coarse_flat
(self, rate, numiter, …)Coarsen flat regions of a surface mesh.
Compute the orientations of the mesh.
Set normals such that mesh volume is positive.
SurfaceMesh.curvatureViaJets
(self, arg0)Compute the mean, Gaussian, and principal curvatures of the mesh.
SurfaceMesh.curvatureViaMDSB
(self, arg0)Compute the mean, Gaussian, and principal curvatures of the mesh.
SurfaceMesh.fillHoles
(self)Fill holes in the mesh.
SurfaceMesh.flipNormals
(self)Flip the orientation of face normals.
Compute the Betti numbers of the mesh.
Get the center and radius of a surface mesh.
SurfaceMesh.getCover
(*args, **kwargs)Overloaded function.
SurfaceMesh.getEdge
(self, arg0)Get a simplex by key.
Get an iterator over
EdgeID
.SurfaceMesh.getFace
(self, arg0)Get a simplex by key.
Get an iterator over
FaceID
.SurfaceMesh.getName
(*args, **kwargs)Overloaded function.
SurfaceMesh.getNormal
(*args, **kwargs)Overloaded function.
SurfaceMesh.getRoot
(self)Get the global metadata.
SurfaceMesh.getVertex
(self, arg0)Get a simplex by key.
Get an iterator over
VertexID
.SurfaceMesh.getVolume
(self)Get the volume of the surface mesh.
Compute the surface area of the mesh.
Initialize the orientations of all mesh simplices.
SurfaceMesh.insertEdge
(self, key, data)Insert an edge into the mesh.
SurfaceMesh.insertFace
(self, key, data)Insert a face into the mesh.
SurfaceMesh.insertVertex
(self, key, data)Inserts a vertex and data based on key.
SurfaceMesh.nearBoundary
(*args, **kwargs)Overloaded function.
SurfaceMesh.normalSmooth
(self, arg0)Perform smoothing of mesh face normals.
SurfaceMesh.onBoundary
(*args, **kwargs)Overloaded function.
SurfaceMesh.removeEdge
(*args, **kwargs)Overloaded function.
SurfaceMesh.removeFace
(*args, **kwargs)Overloaded function.
SurfaceMesh.removeVertex
(*args, **kwargs)Overloaded function.
SurfaceMesh.scale
(self, arg0)Scale mesh by a scale factor.
SurfaceMesh.smooth
(self, max_iter, …)Perform mesh smoothing.
Split disconnected surfaces into separate meshes.
SurfaceMesh.to_ndarray
(self)Converts the Surface Mesh into sets of numpy arrays.
SurfaceMesh.translate
(self, arg0)Translate the mesh.
Attributes
A convenience iterator over
EdgeID
.An convenience iterator over
FaceID
.Get the number of edges in the mesh.
Get the number of faces in the mesh.
Get the number of vertices in the mesh.
A convenience iterator over
VertexID
.