TetGenLink`
TetGenLink`

TetGenSetFacets

TetGenSetFacets[expr,vertices]

sets the facets for a TetGen expression.

Details and OptionsDetails
  • To use TetGenSetFacets, 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 creates an instance of a TetGen expression:

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

    This loads points into the TetGen expression:

    In[3]:=
    Click for copyable input

    This defines and loads facets into the TetGen expression:

    In[4]:=
    Click for copyable input

    The following plots the shape that was loaded into a TetGen expression:

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

    See Also

    TetGenSetPoints  TetGenGetPoints  TetGenGetFacets  TetGenTetrahedralize  TetGenImport

    Tutorials