Class Name: Parallelepiped Volume Extent
Definition
Specifies the length and directions of the edges of a parallelepiped
volume relative to an unspecified location for the volume center.
Primary Page in DRM Diagram:
Example
- A Bounding Volume for a building will
have a Parallelepiped Volume
Extent with:
edge_length[0]=width, first Reference
Vector points to the right,
edge_length[1]=depth, second Reference
Vector points to the back, and
edge_length[2]=height, third Reference
Vector points up.
FAQs
- Given the location of the center, how do I compute the eight
corners of the parallelepiped?
- If V1, V2, and V3 are the three Reference
Vector components and L0 is the Location 3D
of the Volume, then the vector equation for a
parallelepiped corner C is given by:
C = L0+(+/-0.5)*edge_length[0]*V1
+(+/-0.5)*edge_length[1]*V2
+(+/-0.5)*edge_length[2]*V3
The eight combinations of three (+/-0.5) coefficients give eight corners.
- Given the three edges emanating from a corner of a parallelepiped,
how do I compute edge lengths and Reference
Vectors?
- If C0 is the corner location and C[i] is the corner at the other end
edge i, then:
edge_length[i-1] = length of vector ( C[i]-C0 )
and the i-th reference vector is (1/edge_length[i-1])*(C[i]-C0)
for i=1,2,3.
Constraints
None.
Composed of (one-way)
Component of (one-way)(inherited)
Notes
Composed of Notes
edge directions
First component has
<Reference Vector> type = SE_PARALLELEPIPED_EDGE_DIRECTION_1
Second component has
<Reference Vector> type = SE_PARALLELEPIPED_EDGE_DIRECTION_2
Third component has
<Reference Vector> type = SE_PARALLELEPIPED_EDGE_DIRECTION_3
Fields Notes
in meters > 0.0
Prev: PS Location 3D.
Next: Patch.
Up:Index.