TetGenSetFacets


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