TetGenGetEdges[expr]
gets the edges in a TetGen expression.
TetGenGetEdges
TetGenGetEdges[expr]
gets the edges in a TetGen expression.
Details and Options
- To use TetGenGetEdges, you first need to load it using Needs["TetGenLink`"].
- TetGenGetEdges returns the edges in a TetGenExpression.
- TetGenGetEdges needs the "e" switch to be set during the call to TetGenTetrahedralize.
Examples
Basic Examples (1)
Needs["TetGenLink`"]This creates an instance of a TetGen expression:
inst = TetGenCreate[]These are points and facets to load into the instance:
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 loads the points and facets into the instance:
TetGenSetPoints[inst, pts];
TetGenSetFacets[inst, facets];The tetrahedralization is done with the "e" switch to trigger the computation of the edges:
outInst = TetGenTetrahedralize[inst, "pe"]This extracts and visualizes the edges:
pts = TetGenGetPoints[outInst];
edges = TetGenGetEdges[outInst];
Graphics3D[GraphicsComplex[pts, Line[edges]], Boxed -> False]See Also
Tech Notes
Related Guides
Text
Wolfram Research (2010), TetGenGetEdges, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetEdges.html.
CMS
Wolfram Language. 2010. "TetGenGetEdges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetEdges.html.
APA
Wolfram Language. (2010). TetGenGetEdges. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetEdges.html
BibTeX
@misc{reference.wolfram_2026_tetgengetedges, author="Wolfram Research", title="{TetGenGetEdges}", year="2010", howpublished="\url{https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetEdges.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tetgengetedges, organization={Wolfram Research}, title={TetGenGetEdges}, year={2010}, url={https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetEdges.html}, note=[Accessed: 15-June-2026]}