home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / vrml / MWE105.ZIP / EExamples / Walls.vxr < prev    next >
Text File  |  1996-01-25  |  744b  |  39 lines

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     # Options: ON OFF AUTO
  5.     renderCulling AUTO
  6.         
  7.     OUTPUT_TO Walls.wrl
  8.     
  9.     DEF BackgroundColor Info {
  10.         string  ".7 .2 .1"
  11.     }
  12.  
  13.     # Include an x-z grid
  14.     
  15.     PARAMETERS {
  16.         fields [SFLong fromX, SFLong toX, SFLong fromZ, SFLong toZ, SFFloat gridSpacing]
  17.         fromX -1
  18.         toX 9
  19.         fromZ -1
  20.         toZ 9
  21.         gridSpacing 1
  22.         
  23.         INCLUDE gridXZ.vxr
  24.     }
  25.     
  26.     Material {
  27.         diffuseColor =Color("yellow")
  28.     }
  29.  
  30.     Wall {
  31.         fields [ SFLong placement, SFFloat width, MFFloat height, 
  32.             MFFloat elevation, MFVec2f data]
  33.         placement -1
  34.         width 8'in
  35.         height [ 8'ft, 12'ft, 8'ft, 8'ft, 8'ft, 12'ft, 8'ft, 8'ft, 12'ft, 8'ft, 8'ft ]
  36.         elevation [0]
  37.         data [ 0 0, 2 0, 4 0, 4 2, 8 2, 8 4, 8 6, 0 6, 0 4, 0 2, 0 0 ] 
  38.     }
  39. }