TetGenGetFaces

TetGenGetFaces[expr]
gets the faces in a TetGen expression.

DetailsDetails

  • To use , you first need to load it using Needs["TetGenLink`"].
  • It is often useful to work with the faces of a tetrahedralization when making plots.

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 finds a sample data file in the TetGenLink installation:

In[3]:=
Click for copyable input

This loads the data file into the TetGen instance:

In[4]:=
Click for copyable input

This carries out the tetrahedralization, returning a new TetGen instance:

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

This gets the faces from the tetrahedralization:

In[6]:=
Click for copyable input

This gets the points from the tetrahedralization:

In[7]:=
Click for copyable input

This plots the faces:

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