TetGenSetRegions

TetGenSetRegions[expr,pts,index,attrs]

sets the regions in a TetGen expression.

Details and OptionsDetails
  • To use TetGenSetRegions, you first need to load it using Needs["TetGenLink`"].
  • TetGenSetRegions allows you to set different regions in TetGen instances.
  • Examples

    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 up variables that specify a point within a material domain, as well as a region attribute and a region constraint:

    In[5]:=
    Click for copyable input

    The material variables are set in the TetGen instance:

    In[6]:=
    Click for copyable input

    This carries out the tetrahedralization, returning a new TetGen instance. The switch "A" is needed to process the material data:

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

    This extracts the element attributes:

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

    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]=

    See Also

    TetGenGetRegions  TetGenTetrahedralize

    Tutorials