TetGenGetElements

TetGenGetElements[expr]

gets the elements in a TetGen expression.

Details and OptionsDetails
  • To use TetGenGetElements, you first need to load it using Needs["TetGenLink`"].
  • TetGenGetElements returns a list of a list of integers that specify which parts of the coordinates make up the tetrahedra.
  • 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 carries out the tetrahedralization, returning a new TetGen instance:

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

    This extracts the points and elements from the tetrahedralization:

    In[6]:=
    Click for copyable input

    With the following support function, you can visualize the tetrahedra:

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

    See Also

    TetGenGetElementAttributes  TetGenGetPoints  TetGenGetFaces  TetGenTetrahedralize

    Tutorials