# SurfaceMesh¶

class pygamer.surfacemesh.SurfaceMesh

Python wrapper around a gamer::SurfaceMesh.

Methods

 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. Fill holes in the mesh. 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. Get the global metadata. SurfaceMesh.getVertex(self, arg0) Get a simplex by key. Get an iterator over VertexID. Get the volume of the surface 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. 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. Converts the Surface Mesh into sets of numpy arrays. SurfaceMesh.translate(self, arg0) Translate the mesh.

Attributes

 SurfaceMesh.edgeIDs A convenience iterator over EdgeID. SurfaceMesh.faceIDs An convenience iterator over FaceID. SurfaceMesh.nEdges Get the number of edges in the mesh. SurfaceMesh.nFaces Get the number of faces in the mesh. SurfaceMesh.nVertices Get the number of vertices in the mesh. SurfaceMesh.vertexIDs A convenience iterator over VertexID.