|
SOLUTIONS
|
TETGENLINK PACKAGE SYMBOL
TetGenGetElementAttributes
TetGenGetElementAttributes[expr]
gets the element attributes in a TetGen expression.
DetailsDetails
- To use
, you first need to load it using Needs["TetGenLink`"].
returns attributes that are stored in a TetGenExpression.
needs the "A" 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 sets up variables that specify a point within a material domain as well as a region attribute and a region constraint:
| In[5]:= |
The material variables are set in the TetGen instance:
| In[6]:= |
This carries out the tetrahedralization, returning a new TetGen instance. The switch "A" is needed to process the material data:
| In[7]:= |
| Out[7]= |
This extracts the points and faces from the tetrahedralization:
| In[8]:= |
| In[9]:= |
| Out[9]= | ![]() |
Each element now carries the material attribute:
| In[10]:= |
| In[11]:= |
| Out[11]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




