TetGenTetrahedralize


tetrahedralizes a TetGen expression using settings and returns the result in a new TetGen expression.

DetailsDetails

  • To use , you first need to load it using Needs["TetGenLink`"].
  • The settings given to are a string of different commands:
  • "p"tetrahedralize a piecewise linear complex (PLC)
    "q"quality mesh generation; a minimum radius-edge ratio may be specified (default 2.0)
    "a"apply a maximum tetrahedron volume constraint
    "A"assign attributes to identify tetrahedra in certain regions
    "r"reconstruct/refine a previously generated mesh
    "Y"suppress splitting of boundary facets/segments
    "YY"suppress splitting of exterior and interior boundary facets/segments
    "i"insert a list of additional points into mesh
    "M"do not merge coplanar facets
    "T"set a tolerance for coplanar test (default )
    "d"detect intersections of PLC facets
    "o2"generate second-order subparametric elements
    "C"check the consistency of the final mesh
    "Q"quiet: no terminal output except error
  • An empty string given to creates a Delaunay tetrahedralization.
  • has the following options:
  • "TetrahedronRefinement"Nonefunction to refine a tetrahedron

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 carries out the tetrahedralization, returning a new TetGen instance:

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

This extracts the points and faces from the tetrahedralization:

In[6]:=
Click for copyable input

This plots the faces:

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

Set the "r" string in place of "p" to refine an existing TetGen instance:

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

This extracts the points and faces from the tetrahedralization:

In[9]:=
Click for copyable input

This plots the faces:

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