Cuboid
Description
A cuboid.
The vertices of the cuboid are defined as follows, based on the unit cube:
2-------6 c0 := (0, 0, 0) /. /| Y+ c1 := (0, 0, 1) / . / | | c2 := (0, 1, 0) 3-------7 | +-- X+ c3 := (0, 1, 1) | 0....|..4 / c4 := (1, 0, 0) | . | / Z+ c5 := (1, 0, 1) |. |/ c6 := (1, 1, 0) 1-------5 c7 := (1, 1, 1)
where the transformation of a point A
in unit cube space and a point B
in world-space is defined as this:
A' = Orientation * A + Origin B' = Orientation' * (B - Origin)
where A'
and B'
are the transformed points in world-space resp. unit cube space, and Orientation'
is the transpose of Orientation.