TetGenExport


exports data from a TetGen expression into a file.


exports data in the specified format.

DetailsDetails

  • To use , you first need to load it using Needs["TetGenLink`"].
  • The following formats specific to TetGen are supported by :
  • "node"a list of nodes
    "poly"a list of facets
    "smesh"a simple piecewise linear complex
    "ele"a list of tetrahedra
    "face"a list of triangular faces
    "edge"a list of boundary faces
    "neigh"a list of neighbors

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

These are points and facets to load into the instance:

In[3]:=
Click for copyable input

This loads the points and facets into the instance:

In[4]:=
Click for copyable input

Here is a file name to take the data:

In[5]:=
Click for copyable input

This saves the data into the file:

In[6]:=
Click for copyable input

This shows the contents of the file:

Here is a new file name to take the data:

In[8]:=
Click for copyable input

This saves the data into the file:

In[9]:=
Click for copyable input

This shows the contents of the file: