A thin wrapper of ``get_tet_orientations_raw``.
(mesh)
| 17 | return PyMesh.get_tet_orientations(vertices, tets) |
| 18 | |
| 19 | def 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 | |
| 28 | def is_delaunay_raw(vertices, tets): |
| 29 | """ Compute whether each tet is strictly locally Delaunay, cospherical or |