SurfaceMesh.to_ndarray()

Lives in: pygamer.surfacemesh

SurfaceMesh.to_ndarray(self: pygamer.surfacemesh.SurfaceMesh)tuple

Converts the Surface Mesh into sets of numpy arrays.

Returns

Tuple of (nVertices, 3) array of vertex coordinates, (nEdges, 2) array of indices of vertices making up edges, (nFaces, 3) array of indices of vertices making up faces.

Return type

tuple(numpy.ndarray, numpy.ndarray, numpy.ndarray)