TetGenGetElementAttributes

TetGenGetElementAttributes[expr]

gets the element attributes in a TetGen expression.

Details and OptionsDetails
  • To use TetGenGetElementAttributes, you first need to load it using Needs["TetGenLink`"].
  • TetGenGetElementAttributes returns attributes that are stored in a TetGenExpression.
  • TetGenGetElementAttributes needs the "A" switch to be set during the call to TetGenTetrahedralize.
  • Examples

    Basic Examples  (1)

    First, load the package:

    In[1]:=
    Click for copyable input

    This creates an instance of a TetGen expression:

    In[2]:=
    Click for copyable input
    Out[2]=

    This sets up points and facets to use:

    In[3]:=
    Click for copyable input

    This sets the points and facets in the TetGen instance:

    In[4]:=
    Click for copyable input

    This sets up variables that specify a point within a material domain as well as a region attribute and a region constraint:

    In[5]:=
    Click for copyable input

    The material variables are set in the TetGen instance:

    In[6]:=
    Click for copyable input

    This carries out the tetrahedralization, returning a new TetGen instance. The switch "A" is needed to process the material data:

    In[7]:=
    Click for copyable input
    Out[7]=

    This extracts the points and faces from the tetrahedralization:

    In[8]:=
    Click for copyable input


    This plots the faces:

    In[9]:=
    Click for copyable input
    Out[9]=

    Each element now carries the material attribute:

    In[10]:=
    Click for copyable input
    In[11]:=
    Click for copyable input
    Out[11]=

    See Also

    TetGenGetElements  TetGenSetRegions  TetGenTetrahedralize

    Tutorials