igl.copyleft.tetgen¶
Python API reference for igl.copyleft.tetgen.
tetrahedralize¶
tetrahedralize(V: float64[m, n], F: int64[m, n] = Ellipsis, H: float64[m, n] = Ellipsis, VM: int64[m] = Ellipsis, FM: int64[m] = Ellipsis, R: float64[m, n] = Ellipsis, flags: str = '') -> tuple[float64[m, n], int64[m, n], int64[m, n], int64[m], int64[m], int64[m, n], int64[m], int64[m, n], int]
Mesh the interior of a surface mesh (V,F) using tetgen
Parameters
V— #V by 3 vertex position listF— #F list of polygon face indices into V (0-indexed)H— #H by 3 list of seed points inside holesVM— #VM list of vertex markersFM— #FM list of face markersR— #R by 5 list of region attributesflags— string of tetgen options (See tetgen documentation) e.g. “pq1.414a0.01” tries to mesh the interior of a given surface with quality and area constraints “” will mesh the convex hull constrained to pass through V (ignores F)TV— #TV by 3 vertex position listTT— #TT by 4 list of tet face indicesTF— #TF by 3 list of triangle face indices (‘f’, elseboundary_facetsis called on TT)TR— #TT list of region ID for each tetrahedronTN— #TT by 4 list of indices neighbors for each tetrahedron (‘n’)PT— #TV list of incident tetrahedron for a vertex (‘m’)FT— #TF by 2 list of tetrahedrons sharing a triface (‘nn’)num_regions— Number of regions in output mesh