TETGENLINK PACKAGE SYMBOL
TetGenGetFacets
TetGenGetFacets[expr]
returns the facets for a TetGen expression.
- 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.
First, load the package:
This finds a sample data file in the TetGenLink installation:
| Out[2]= |  |
To load the data file, you must first create an instance of a TetGen expression to hold the result:
| Out[3]= |  |
This loads the data file into the instance:
This extracts the points from the instance:
| Out[5]= |  |
This extracts the vertices from the instance:
| Out[6]= |  |
Here, the shape is plotted:
| Out[7]= |  |