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

Function is_delaunay

python/pymesh/meshutils/voxel_utils.py:44–51  ·  view source on GitHub ↗

A thin wrapper of ``is_delaunay_raw``.

(mesh)

Source from the content-addressed store, hash-verified

42 return PyMesh.is_delaunay(vertices, tets)
43
44def is_delaunay(mesh):
45 """ A thin wrapper of ``is_delaunay_raw``.
46 """
47 if mesh.num_voxels == 0:
48 return np.zeros(0)
49 if mesh.vertex_per_voxel != 4:
50 raise NotImplementedError("Delaunay property computation expect a tet mesh.")
51 return PyMesh.is_delaunay(mesh.vertices, mesh.voxels)

Callers 1

TESTFunction · 0.85

Calls 2

NotImplementedErrorClass · 0.85
is_delaunayMethod · 0.80

Tested by 1

TESTFunction · 0.68