TetGenGetFacetHoles

TetGenGetFacetHoles[expr]
gets the holes in the facets.

DetailsDetails

  • To use , you first need to load it using Needs["TetGenLink`"].
  • retrieves facet holes set in a TetGen instance.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

To use TetGenLink it must first be loaded:

In[1]:=
Click for copyable input

You start by specifying the coordinates and displaying them:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Then you create the input instance and set the points:

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

Next, the list of facets is created. If a facet list has more than one entry, like the third facet in this example, the first facet represents the bounding facet and the subsequent facets indicate where the bounding facet should have an opening:

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

Here one facet is shown with an outline of where the facet should be open:

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

You set the facets in the input instance of TetGen:

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

For TetGen to open the facet, you set up a facet hole:

In[10]:=
Click for copyable input

Then set the facet holes in the TetGen input instance with the TetGenSetFacetHoles command:

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

With , you can retrieve the value set in the TetGen instance:

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

Here is a picture of the bounding facet and the facet hole position:

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

TetGen works by meshing the entire object first and then in a second step removes the mesh from holes and cavities. Note that the cavity also needs a point to specify where it is situated. The point that specifies the opening is not sufficient. To specify where TetGen should put holes, use TetGenSetHoles:

In[14]:=
Click for copyable input
In[15]:=
Click for copyable input

With TetGenGetHoles, you can retrieve the value set in the TetGen instance:

In[16]:=
Click for copyable input
In[17]:=
Click for copyable input
Out[17]=

To extract the faces and visualize them, use TetGenGetFaces:

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