TetGenLink`
TetGenLink`

TetGenSetFacets

TetGenSetFacets[expr,vertices]

sets the facets for a TetGen expression.

Details

  • 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:

This creates an instance of a TetGen expression:

This loads points into the TetGen expression:

This defines and loads facets into the TetGen expression:

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