next up previous
Next: Formats of 3D primitives Up: Global structure of g4.prim Previous: Terminating block

A Real example of complete visualizable file

The following is a visualizable example of a red box centered at position (1,2,3) of the world coordinate.

##G4.PRIM-FORMAT-2.4
#####################################
# Red 1x4x9 box centered at (1,2,3) #
#####################################
/BoundingBox  0.5  0.0  -1.5   1.5   4.0   7.5
!SetCamera
!OpenDevice
!BeginModeling
/Origin   1.0  2.0  3.0
/ColorRGB 1.0  0.0  0.0  
/Box 0.5   2.0   4.5  
!EndModeling
!DrawAll
!CloseDevice



Satoshi Tanaka
4/9/1998