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)
| 26 | return PyMesh.get_tet_orientations(mesh.vertices, mesh.voxels) |
| 27 | |
| 28 | def 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 | |
| 44 | def is_delaunay(mesh): |
| 45 | """ A thin wrapper of ``is_delaunay_raw``. |
nothing calls this directly
no test coverage detected