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

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     # Options: ON OFF AUTO
  5.     renderCulling AUTO
  6.     
  7.     OUTPUT_TO Connect.wrl
  8.     
  9.     Material {
  10.         diffuseColor =Color("yellow")
  11.     }
  12.     
  13.     DEF one Ball {
  14.         fields [ SFVec3f center, SFFloat radius ]
  15.         center 0 0 0
  16.         radius .1
  17.     }
  18.     
  19.     DEF two Ball {
  20.         fields [ SFVec3f center, SFFloat radius ]
  21.         center 1 1 0
  22.         radius .1
  23.     }
  24.     
  25.     
  26.     Material {
  27.         diffuseColor =Color("white")
  28.     }
  29.     
  30.     Connect {
  31.         fields [ SFNode first, SFNode second, SFFloat radius ]
  32.         first one        # Name of a node with a SFVect3f center field
  33.         second two        # Name of another node with a SFVect3f center field
  34.         radius 1'cm
  35.     }
  36. }