SurfaceMesh

class pygamer.surfacemesh.SurfaceMesh

Python wrapper around a gamer::SurfaceMesh.

Methods

SurfaceMesh.__init__(self)

Default constructor.

SurfaceMesh.addVertex(*args, **kwargs)

Overloaded function.

SurfaceMesh.check_orientation(self)

Check consistency and assign Face orientations.

SurfaceMesh.clear_orientation(self)

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.

SurfaceMesh.compute_orientation(self)

Compute the orientations of the mesh.

SurfaceMesh.correctNormals(self)

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.

SurfaceMesh.getBettiNumbers(self)

Compute the Betti numbers of the mesh.

SurfaceMesh.getCenterRadius(self)

Get the center and radius of a surface mesh.

SurfaceMesh.getCover(*args, **kwargs)

Overloaded function.

SurfaceMesh.getEdge(self, arg0)

Get a simplex by key.

SurfaceMesh.getEdgeIDIterator(self)

Get an iterator over EdgeID.

SurfaceMesh.getFace(self, arg0)

Get a simplex by key.

SurfaceMesh.getFaceIDIterator(self)

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.

SurfaceMesh.getVertexIDIterator(self)

Get an iterator over VertexID.

SurfaceMesh.getVolume(self)

Get the volume of the surface mesh.

SurfaceMesh.init_orientation(self)

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)

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.

SurfaceMesh.splitSurfaces(self)

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

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.