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

Function is_delaunay_raw

python/pymesh/meshutils/voxel_utils.py:28–42  ·  view source on GitHub ↗

Compute whether each tet is strictly locally Delaunay, cospherical or not locally Delaunay. Args: vertices (``numpy.ndarray``): n by 3 matrix representing vertices. tets (``numpy.ndarray``): m by 4 matrix of vertex indices representing tets. Returns: A list of

(vertices, tets)

Source from the content-addressed store, hash-verified

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
30 not locally Delaunay.
31
32 Args:
33 vertices (``numpy.ndarray``): n by 3 matrix representing vertices.
34 tets (``numpy.ndarray``): m by 4 matrix of vertex indices representing tets.
35
36 Returns:
37 A list of m floats representing result for each tet:
38 * 1 => tet is strictly locally Delaunay.
39 * 0 => tet is cospherical with an adjacent tet.
40 * 1 => tet is not locally Delaunay.
41 """
42 return PyMesh.is_delaunay(vertices, tets)
43
44def is_delaunay(mesh):
45 """ A thin wrapper of ``is_delaunay_raw``.

Callers

nothing calls this directly

Calls 1

is_delaunayMethod · 0.80

Tested by

no test coverage detected