next up previous
Next: /PolyCone Up: Formats of 3D primitives Previous: /Cons

/Parallelepiped

/Parallelepiped describes a parallelepiped, which is the following skewed box.
1.
The top and bottom facets are identical parallelograms.
2.
The top parallelogram is on plane z = +dz and the bottom parallelogram on plane z = -dz.
3.
The center locates at the origin.
4.
A line joining the centers of the top and bottom parallelograms is skewed by angles (polar angle) and (azimuthal angle).
5.
Two edges of the top (or bottom) parallelogram are parallel to the x axis. Their length is dx, and distance between them, i.e., height of the parallelogram, is dy.
6.
The top (or bottom) parallelogram skews by angle in the x direction. That is, is the angle formed the y axis and a line joining middle points of the two x-directional edges mentioned above.
/Parallelepiped corresponds to class G4Para of GEANT4.

Format /Parallelepiped dx dy dz tan(alpha) tan(theat)*cos(phi) tan(theta)*sin(phi)
dx half length of edges parallel to the x axis
dy half height of the top and bottom parallelograms
  along the y axis
dz half height of this parallelepiped along the z axis
tan(alph)
  alpha : angle expressing skew of the top and bottom
  parallelograms in the x direction.
tan(theta)*cos(phi)
  Polar angle theta and azimuthal angle phi
  describes skewness of the line joining centers
  of the top and bottom parallelograms
tan(theta)*sin(phi)


next up previous
Next: /PolyCone Up: Formats of 3D primitives Previous: /Cons
Satoshi Tanaka
4/9/1998