#include <vrmltypes.h>
Collaboration diagram for transform_fields_:

The Transform node is formally defined as:
Transform {
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField SFVec3f center 0 0 0 # (-infinite, infinite)
exposedField MFNode children []
exposedField SFRotation rotation 0 0 1 0 # [-1,1],(-infinite, infinite)
exposedField SFVec3f scale 1 1 1 # (0,infinite)
exposedField SFRotation scaleOrientation 0 0 1 0 # [-1,1],(-infinite, infinite)
exposedField SFVec3f translation 0 0 0 # (-infinite, infinite)
field SFVec3f bboxCenter 0 0 0 # (-infinite, infinite)
field SFVec3f bboxSize -1 -1 -1 # (0,infinite) or -1,-1,-1
}
We use the node.child field for storing children data, so the children field in this struct is omitted. Note that the following Transform node:
Transform {
center C
rotation R
scale S
scaleOrientation SR
translation T
children [...]
}
is equivalent to the nested sequence of:
Transform {
translation T
children Transform {
translation C
children Transform {
rotation R
children Transform {
rotation SR
children Transform {
scale S
children Transform {
rotation -SR
children Transform {
translation -C
children [...]
}}}}}}}
Data Fields | |
| sfvec3f | bboxCenter |
| The center of the bounding box enclosing the Transform. | |
| sfvec3f | bboxSize |
| The size of the bounding box enclosing the Transform. | |
| sfvec3f | center |
| The center field specifies a translation offset from the origin of the local coordinate system (0,0,0). | |
| sfrotation | rotation |
| The rotation field specifies a rotation of the coordinate system. | |
| sfvec3f | scale |
| The scale field specifies a non-uniform scale of the coordinate system. | |
| sfrotation | scaleOrientation |
| The scaleOrientation specifies a rotation of the coordinate system before the scale (to specify scales in arbitrary orientations). | |
| sfvec3f | translation |
| The translation field specifies a translation to the coordinate system. | |
|
|
The center of the bounding box enclosing the Transform.
|
|
|
The size of the bounding box enclosing the Transform.
|
|
|
The center field specifies a translation offset from the origin of the local coordinate system (0,0,0).
|
|
|
The rotation field specifies a rotation of the coordinate system.
|
|
|
The scale field specifies a non-uniform scale of the coordinate system. Scale values shall be greater than zero. |
|
|
The scaleOrientation specifies a rotation of the coordinate system before the scale (to specify scales in arbitrary orientations). The scaleOrientation applies only to the scale operation. |
|
|
The translation field specifies a translation to the coordinate system.
|