MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / get_tet_orientations

Function get_tet_orientations

python/pymesh/meshutils/voxel_utils.py:19–26  ·  view source on GitHub ↗

A thin wrapper of ``get_tet_orientations_raw``.

(mesh)

Source from the content-addressed store, hash-verified

17 return PyMesh.get_tet_orientations(vertices, tets)
18
19def get_tet_orientations(mesh):
20 """ A thin wrapper of ``get_tet_orientations_raw``.
21 """
22 if mesh.num_voxels == 0:
23 return np.zeros(0)
24 if mesh.vertex_per_voxel != 4:
25 raise NotImplementedError("Orientation computation expect a tet mesh.")
26 return PyMesh.get_tet_orientations(mesh.vertices, mesh.voxels)
27
28def is_delaunay_raw(vertices, tets):
29 """ Compute whether each tet is strictly locally Delaunay, cospherical or

Callers 1

TESTFunction · 0.85

Calls 2

NotImplementedErrorClass · 0.85
get_tet_orientationsMethod · 0.80

Tested by 1

TESTFunction · 0.68