TetGenGetNeighbors
TetGenGetNeighbors[expr]
gets the neighbors in a TetGen expression.
Details and Options
- To use TetGenGetNeigbors, you first need to load it using Needs["TetGenLink`"].
- TetGenGetNeigbors returns a list of a list of integers that specify which tetrahedra are next to each other. An entry of indicates that the respective tetrahedron is on the boundary.
- TetGenGetNeigbors needs the "n" switch to be set during the call to TetGenTetrahedralize.
Examples
Basic Examples (1)
This creates an instance of a TetGen expression:
This sets up points and facets to use:
This sets the points and facets in the TetGen instance:
This carries out the tetrahedralization, returning a new TetGen instance. The switch "n" requests TetGen to compute the neighbors:
This extracts the points and elements from the tetrahedralization:
This is a list of the neighboring elements, with indicating a boundary:
Text
Wolfram Research (2010), TetGenGetNeighbors, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetNeighbors.html.
CMS
Wolfram Language. 2010. "TetGenGetNeighbors." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetNeighbors.html.
APA
Wolfram Language. (2010). TetGenGetNeighbors. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenGetNeighbors.html