TetGenGetFaceMarkers

TetGenGetFaceMarkers[expr]
returns the face markers for a TetGen expression.

DetailsDetails

  • To use , you first need to load it using Needs["TetGenLink`"].
  • returns a list of integers that specify which facets have the same markers.

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 sets up points and facets to use:

In[3]:=
Click for copyable input

This sets the points and facets in the TetGen instance:

In[4]:=
Click for copyable input

This sets the point and facet markers:

In[5]:=
Click for copyable input

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

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

This extracts the points and elements from the tetrahedralization:

In[7]:=
Click for copyable input

This visualizes the surface mesh as a wire frame:

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

To extract the face markers, you use :

In[9]:=
Click for copyable input

This shows all available facet markers:

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

This shows facets according to some selected markers:

In[11]:=
Click for copyable input
Out[11]=
New to Mathematica? Find your learning path »
Have a question? Ask support »