7. Connect the points into tetrahedra

The mesh designer may use the following set of command to connect the points into a tetrahedral mesh:

 

filter/1,0,0/

cmo/setatt//itp/pset,get,rayend/21/

setpts

connect

settets

dump /gmv/filename

finish

“2” “411”

The complete input for the tutorial is:

 

cmo/create/3dmesh/

surface/cube/reflect /box/0.0,0.0,0.0/1.0,1.0,1.0/

surface /cutplane/intrface/plane/0.,0.,.5/1.,0.,.5/1.,1.,.5/

*define geometric regions

region/top/ le cube and gt cutplane ** ** /

region/bottom/ le cube and le cutplane /

**

mregion/mattop/ le cube and gt cutplane /

mregion/matbot/ le cube and lt cutplane /

createpts/xyz/5,5,1/0.,0.,1.1/1.,1.,1.1/1,1,0/

pset/rayend/seq/1,0,0/

regnpts/top/3/pset,get,rayend/xyz/0.,0.,-.1/0.,1.,-.1/1.,1.,-.1/0,0/

regnpts/bottom/4/pset,get,rayend/xyz/0.,0.,-.1/0.,1.,-.1/1.,1.,-.1/1,.6/

filter/1,0,0/

cmo/setall//itp/pset,get,rayend/21** **/

setpts

connect

settets

dump/gmv/filename

finish