TetGenGetFacets

TetGenGetFacets[expr]
returns the facets for a TetGen expression.

DetailsDetails

  • To use , 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.

ExamplesExamplesopen allclose all

Basic Examples (1)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
Out[2]=

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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »