Hi,
I've developed an Axis3d PROTO that can be used instead of the Transform
node with a translation and rotation. Typically in the CAD and STEP
data exchange world parts or assemblies are positioned using an origin
and two direction vectors. The first direction vector specifies the
axis and the second direction vector specifies the reference direction
(up-vector). The two vectors should be approximately orthogonal. The
cross product of the two vectors defines the third axis.
As an example:
Axis3d {origin 17.2 -6 23.9 axis 1 .1 .5 refdir 0 1 0
show 1 string "Center"
children [
Beam {typ "CY" point [ 1.4 1.4 0 .6 .7 -.2]}
Beam {typ "W24X137" point [ 2 2 -2 0 1 0 -1 0 0] lngth 15}
MyWidget {}
Shape {geometry Box{}}
Axis3d {point [ -10 0 -1, 0 1 0, -1 0 0]
show 1 string "OffCenter"
children Shape {geometry Cone {}}
}
]
Quote:
}
More information about the Axis3d PROTO can be found at
http://www.*-*-*.com/ ;There are
links to a several examples and the source code.
Bob Lipman
http://www.*-*-*.com/
Sent via Deja.com http://www.*-*-*.com/
Before you buy.