TetGenExport

TetGenExport["file.ext",expr]
exports data from a TetGen expression into a file.

TetGenExport["file",expr,"format"]
exports data in the specified format.

更多信息更多信息

  • To use TetGenExport, you first need to load it using Needs["TetGenLink`"].
  • The following formats specific to TetGen are supported by TetGenExport:
  • "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

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (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 "poly" 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:

In[7]:=
Click for copyable input

Here is a new file name to take the "node" 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:

In[10]:=
Click for copyable input