home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / vrml / MWE105.ZIP / EExamples / Table.vxr < prev    next >
Text File  |  1996-04-14  |  1KB  |  68 lines

  1. #VRML V1.0 ascii
  2.  
  3. #This file defines a round table 
  4.  
  5. Separator {
  6.     # Options: ON OFF AUTO
  7.     renderCulling AUTO
  8.     
  9.     OUTPUT_TO Table.wrl
  10.         
  11.     DEF BackgroundColor Info {
  12.         string  ".8 .8 .8"
  13.     }
  14.     
  15.     Material {
  16.         diffuseColor .8 0 0
  17.     }
  18.     
  19.     PARAMETERS {
  20.         fields [SFFloat topDiameter, SFFloat tableHeight, SFFloat baseHeight,
  21.         SFFloat pedistalRadius, SFFloat pedistalHeight,    SFFloat topHeight]
  22.  
  23.         topDiameter 48'in
  24.         tableHeight 28'in
  25.         baseHeight 2'in
  26.         pedistalRadius 2'in
  27.         pedistalHeight tableHeight-topHeight-baseHeight
  28.         topHeight 1.5'in
  29.     
  30.         DEF roundTable Separator {
  31.             Separator {
  32.                 Translation {
  33.                     translation 0 (baseHeight)/2 0
  34.                 }
  35.                 
  36.                 DEF tableBase Cylinder {
  37.                     parts ALL
  38.                     radius topDiameter*.25
  39.                     height baseHeight
  40.                 }
  41.             }
  42.         
  43.             Separator {    
  44.                 Translation {
  45.                         translation 0 baseHeight+(pedistalHeight/2) 0
  46.                 }
  47.             
  48.                 DEF tablePedistal Cylinder {
  49.                         parts ALL
  50.                         radius pedistalRadius
  51.                         height pedistalHeight
  52.                 }
  53.             }
  54.     
  55.             Separator {
  56.                 Translation {
  57.                     translation 0 baseHeight+pedistalHeight+(topHeight/2) 0
  58.                 }
  59.         
  60.                 DEF tableTop Cylinder {
  61.                     parts ALL
  62.                     radius topDiameter/2
  63.                     height topHeight
  64.                 }
  65.             }
  66.         }
  67.     }
  68. }