TetGenLink`
TetGenLink`

TetGenGetFacets

TetGenGetFacets[expr]

returns the facets for a TetGen expression.

Details and OptionsDetails
  • To use TetGenGetFacets, you first need to load it using Needs["TetGenLink`"].
  • Each facet is a list of indices into the point specification.
  • Each facet represents a polygonal region. It may have any number of sides and may be nonconvex, possibly with holes, segments, and vertices in it.
  • Each facet must be coplanar.
  • Examples

    Basic Examples  (1)

    First, load the package:

    In[1]:=
    Click for copyable input

    This finds a sample data file in the TetGenLink installation:

    In[2]:=
    Click for copyable input

    To load the data file, you must first create an instance of a TetGen expression to hold the result:

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

    This loads the data file into the instance:

    In[4]:=
    Click for copyable input

    This extracts the points from the instance:

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

    This extracts the vertices from the instance:

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

    Here, the shape is plotted:

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

    See Also

    TetGenSetPoints  TetGenGetPoints  TetGenSetFacets  TetGenTetrahedralize  TetGenImport

    Tutorials