The so described body can be rotated, shrunk or expanded and shifted.
############################################################################## # Flags: nomenu, noprompt, nomessage, # ############################################################################## # section -stlfile # ############################################################################## # file= /usr/local/gd1/examples/woman.stl # # material = 1 # # whichcells= all, taboo= none, nboundaries= 1 # # originprime = ( 0.0, 0.0, 0.0 ) # # xprimedirection= ( 1.0, 0.0, 0.0 ) # # yprimedirection= ( 0.0, 1.0, 0.0 ) # # xscale = 1.0 # # yscale = 1.0 # # zscale = 1.0 # # debend = no -- debend description around uaxis # # uaxis= z -- [xyz] : direction of debend-axis # # radius= 0.0 # # v0 = 0.0 -- v0,w0: coordinates of the axis. # # w0 = 0.0 # # show = no -- ( yes | no ) # ############################################################################## # doit, return, help # ##############################################################################
file= NAME_OF_STLFILE
:
material= MAT
:
whichcells
all
, or a material-index.
whichcells=all
, all volume inside the
stl-body is assigned the material-index,
provided the former material is not taboo
.
If whichcells
is a material-index, only the parts of the
stl-body that are currently filled with the given index
are assigned the new material-index.
taboo
none
, or a material-index.
taboo=none
, all volume inside the
stl-body is assigned the material-index.
If taboo
is a material-index, only the parts of the
stl-body that are currently filled with another index
than the given index are assigned the new material-index.
originprime= (X0, Y0, Z0)
: xprimedirection= (XXN, XYN, XZN)
: yprimedirection= (YXN, YYN, YZN)
: xscale= XS, yscale= YS, zscale= ZS
:
The coordinates of a point P of the STL-set are now transformed via
P <= (A) * P P_x <= P_x * xscale + X0 P_y <= P_y * yscale + Y0 P_z <= P_z * zscale + Z0
show= [yes|no]
:
doit
:
# /usr/local/gd1/examples-from-the-manual/stl-example.gdf -mesh volume= ( -0.4,0.4, -0.4,0.4, -0.4,0.35 ) spacing= 0.5/70 -stlfile material= 34 file= /usr/local/gd1/examples/brain.stl define(SCALE, 0.1) xscale= SCALE, yscale= SCALE, zscale= SCALE origin= ( 0, 0, -2.2 ) xprimedirection= ( 1, 1, 0 ), yprimedirection= ( 0, 0, 1 ) doit -volumeplot scale= 3 doit
Example
# /usr/local/gd1/examples-from-the-manual/stl-example2.gdf -mesh spacing= 2.2 perfectmesh= yes volume= ( 0,200, 0,130, -200,0 ) -stlfile file= /usr/local/gd1/examples/wagner60kASTL.stl xprime= ( 1, 0, 0 ) yprime= ( 0, 0, -1 ) material= 1, taboo= none show= yes, doit -volumeplot, scale= 2.5, eyepos= ( 1, 2, 0.5), doit