|
SOLUTIONS
|
TETGENLINK PACKAGE SYMBOL
TetGenGetNeighbors
TetGenGetNeighbors[expr]
gets the neighbors in a TetGen expression.
DetailsDetails
- To use
, you first need to load it using Needs["TetGenLink`"].
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.
needs the "n" switch to be set during the call to TetGenTetrahedralize.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
| In[1]:= |
This creates an instance of a TetGen expression:
| In[2]:= |
| Out[2]= |
This sets up points and facets to use:
| In[3]:= |
This sets the points and facets in the TetGen instance:
| In[4]:= |
This carries out the tetrahedralization, returning a new TetGen instance. The switch "n" requests TetGen to compute the neighbors:
| In[5]:= |
| Out[5]= |
This extracts the points and elements from the tetrahedralization:
| In[6]:= |
This is a list of the neighboring elements, with
indicating a boundary:
| In[7]:= |
| Out[7]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


