next up previous
Next: Modeling block Up: Global structure of g4.prim Previous: Global structure of g4.prim

Preamble

The preamble is of the following form:

##G4.PRIM-FORMAT-2.4
/BoundingBox  xmin ymin zmin xmax ymax zmax   
!SetCamera  
!OpenDevice

The first line of a g4.prim-format data must be the header-comment line as ``##G4.PRIM-FORMAT-2.4''. The line, /BoundingBox ... defines a bounding box which determines extension of the described 3D scene. Real numbers xmin, ymin and zmin are minimum x, y, and z world coordinates of the 3D scene, while xmax, ymax and zmax are maximum. DAWN uses this information for automatic camera positioning, automatic drawing of coordinate axes, etc.

Example:

##G4.PRIM-FORMAT-2.4
/BoundingBox -1.0 -2.5 -5.0 1.0 2.5 5.0
!SetCamera
!OpenDevice



Satoshi Tanaka
4/9/1998