TetGenGetFaceMarkers[expr]
returns the face markers for a TetGen expression.
TetGenGetFaceMarkers
TetGenGetFaceMarkers[expr]
returns the face markers for a TetGen expression.
Details and Options
- To use TetGenGetFaceMarkers, you first need to load it using Needs["TetGenLink`"].
- TetGenGetFaceMarkers returns a list of integers that specify which facets have the same markers.
Examples
Basic Examples (1)
Needs["TetGenLink`"]This creates an instance of a TetGen expression:
inst = TetGenCreate[]This sets up points and facets to use:
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.}};
facets = {{{1, 2, 3, 4}}, {{5, 6, 7, 8}}, {{1, 5, 6, 2}}, {{2, 6, 7, 3}}, {{3, 7, 8, 4}}, {{4, 8, 5, 1}}};This sets the points and facets in the TetGen instance:
TetGenSetPoints[inst, pts];
TetGenSetFacets[inst, facets];This sets the point and facet markers:
TetGenSetPointMarkers[inst, {43, 43, 43, 43, 66, 66, 66, 66}];
TetGenSetFacetMarkers[inst, {43, 66, 4, 2, 5, 3}];This carries out the tetrahedralization, returning a new TetGen instance:
outInst = TetGenTetrahedralize[ inst, "pqa0.1"]This extracts the points and elements from the tetrahedralization:
coords = TetGenGetPoints[outInst];
faces = TetGenGetFaces[outInst];This visualizes the surface mesh as a wire frame:
Graphics3D[GraphicsComplex[coords, Line[ faces[[All, {1, 2, 3, 1}]]]], Boxed -> False]To extract the face markers, you use TetGenGetFaceMarkers:
faceMarkers = TetGenGetFaceMarkers[outInst];This shows all available facet markers:
Union[faceMarkers]This shows facets according to some selected markers:
selectedFaces = {43, 66};
Graphics3D[{
GraphicsComplex[coords, Polygon[ Flatten[ Pick[faces, faceMarkers, #]& /@ selectedFaces, 1]]]}]Tech Notes
Related Guides
Text
Wolfram Research (2010), TetGenGetFaceMarkers, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetFaceMarkers.html.
CMS
Wolfram Language. 2010. "TetGenGetFaceMarkers." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetFaceMarkers.html.
APA
Wolfram Language. (2010). TetGenGetFaceMarkers. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetFaceMarkers.html
BibTeX
@misc{reference.wolfram_2026_tetgengetfacemarkers, author="Wolfram Research", title="{TetGenGetFaceMarkers}", year="2010", howpublished="\url{https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetFaceMarkers.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tetgengetfacemarkers, organization={Wolfram Research}, title={TetGenGetFaceMarkers}, year={2010}, url={https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetFaceMarkers.html}, note=[Accessed: 15-June-2026]}