Skip to content

igl.copyleft.tetgen

Python API reference for igl.copyleft.tetgen.

tetrahedralize

C++ reference

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 list
  • F — #F list of polygon face indices into V (0-indexed)
  • H — #H by 3 list of seed points inside holes
  • VM — #VM list of vertex markers
  • FM — #FM list of face markers
  • R — #R by 5 list of region attributes
  • flags — 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 list
  • TT — #TT by 4 list of tet face indices
  • TF — #TF by 3 list of triangle face indices (‘f’, else boundary_facets is called on TT)
  • TR — #TT list of region ID for each tetrahedron
  • TN — #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