Download TetGen Manual

Transcript
facet normal 0.00 0.00 1.00
outer loop
vertex 2.00 2.00 0.00
vertex -1.00 1.00 0.00
vertex 0.00 -1.00 0.00
endloop
endfacet
...
endsolid
4.2.4
.mesh files
.mesh is the file formats of Medit - an interactive 3D mesh viewing program http://www.ann.jussieu.fr/~frey/logiciels/medit.html. This
file format is described in the documentation of Medit.
A repository of free 3D models in this file format are available at INRIA’s
Free 3D Meshes Download http://www-rocq1.inria.fr/gamma.
4.3
File Format Examples
This section provides two examples. They are designed to support interactive
learning. The topics are description of the PLCs using TetGen’s .poly file
format and constructing different quality meshes through the command line
switches.
4.3.1
A PLC with Two Boundary Markers
Figure 19 shows the geometry of a rectangular bar. This bar consists of
eight nodes and six facets (which are all rectangles). In addition, there
are two boundary markers (−1 and −2) associated to the leftmost facet
and the rightmost facet, respectively. This simple model has its physical
meaning. It can be seen as a typical heat transfer problem. The task is
to compute the temperature diffusion in the bar, in which the flow of heat
moves from hot side to cold side. The two boundary markers can represent
two different boundary conditions, one has high temperature and the other
has low temperature. Here is the input file “bar.poly” describing the bar:
# Part 1 - the node list.
# A bar with 8 nodes in 3D, no attributes, no boundary marker.
8 3 0 0
# The 4 leftmost nodes:
42