TetGenSetFacets[expr,vertices]
sets the facets for a TetGen expression.
TetGenSetFacets
TetGenSetFacets[expr,vertices]
sets the facets for a TetGen expression.
Details and Options
- To use TetGenSetFacets, you first need to load it using Needs["TetGenLink`"].
- Each facet is a list of indices into the point specification.
- Each facet represents a polygonal region; it may have any number of sides and may be nonconvex, possibly with holes, segments, and vertices in it.
- Each facet must be coplanar.
Examples
Basic Examples (1)
Needs["TetGenLink`"]This creates an instance of a TetGen expression:
inst = TetGenCreate[]This loads points into the TetGen expression:
pts = {{0., 0., 0.}, {2., 0., 0.}, {2., 0., 2.}, {0., 0., 2.}, {0., 12., 0.}, {2., 12., 0.}, {2., 12., 2.}, {0., 12., 2.}};
TetGenSetPoints[inst, pts];This defines and loads facets into the TetGen expression:
verts = {{{1, 2, 3, 4}}, {{5, 6, 7, 8}}, {{1, 5, 6, 2}}, {{2, 6, 7, 3}}, {{3, 7, 8, 4}}, {{4, 8, 5, 1}}};TetGenSetFacets[inst, verts];The following plots the shape that was loaded into a TetGen expression:
Graphics3D[GraphicsComplex[pts, Map[Polygon, verts]]]Tech Notes
Related Guides
Text
Wolfram Research (2010), TetGenSetFacets, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenSetFacets.html.
CMS
Wolfram Language. 2010. "TetGenSetFacets." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenSetFacets.html.
APA
Wolfram Language. (2010). TetGenSetFacets. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenSetFacets.html
BibTeX
@misc{reference.wolfram_2026_tetgensetfacets, author="Wolfram Research", title="{TetGenSetFacets}", year="2010", howpublished="\url{https://reference.wolfram.com/language/TetGenLink/ref/TetGenSetFacets.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tetgensetfacets, organization={Wolfram Research}, title={TetGenSetFacets}, year={2010}, url={https://reference.wolfram.com/language/TetGenLink/ref/TetGenSetFacets.html}, note=[Accessed: 15-June-2026]}