|
|
Wasn't it Christoph Hormann who wrote:
>
>These all look very impressive. Does that program generate the FEM grid
>itself or do you supply it?
I'm not sure exactly what you're asking. The floppy falling chair script
was supplied with the program. Some other scripts I've written myself.
The script language has some similarities to POV SDL. The primitive object
types are "cuboid", "cube", "sphere", "sheet" and "tube", and "compound"
objects (like the chair) can be constructed like CGI unions. There's also
a "stairs" object that can only be used as a static "background" object.
It uses right handed co-ordinates (gravity acts in the minus Z direction).
FEMS2
/* chair falling down stairs */
/* WARNING: takes a long time to produce */
rendering {
type dots
resolution 320,256
view 140,24 /* x-y rotation, elevation 24 */
background back
/* for speed, assume background is always behind solid */
}
frame_aim 350
gravity 0,0,-600
time_div 4
solid {
create {
type compound
/* front legs */
part { type cuboid:points 3,3,11:size 1in,1in,5in }
part { type cuboid:points 3,3,11:size 1in,1in,5in:offset 4in,0,0 }
/* back legs */
part { type cuboid:points 3,3,23:size 1in,1in,11in:offset 0,4in,0 }
part { type cuboid:points 3,3,23:size 1in,1in,11in:offset 4in,4in,0 }
/* seat */
part { type cuboid:points 11,9,3:size 5in,4in,1in:offset 0,0,5in }
/* back */
part { type cuboid:points 7,2,5:size 3in,.5in,2in:offset 1in,4.5in,9in }
}
translate -2.5in,-2.5in,0in
scale .7,.7,.7
nearbonds { spring_const 25: range 2.25 }
rotate 0,0,40
translate 0,4.5in,4.5in
air_damp 4
}
background {
create {
type stairs
points 13,11,3 /* points in width, no. of steps, pts in a step */
size 14in,2in,2.33in /* width, step height, step depth */
}
translate 0,-11.65in,-10in
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|