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

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     # Options: ON OFF AUTO
  5.     renderCulling AUTO
  6.     
  7.     OUTPUT_TO Reflect.wrl
  8.     
  9.     DEF BackgroundColor Info {
  10.         string  ".1 .2 .6"
  11.     }
  12.  
  13.     Material {
  14.         diffuseColor =Color("yellow")
  15.     }
  16.  
  17.     # Define one triangle
  18.     DEF object Coordinate3 {
  19.         point [1 0 0, 2 0 0, 2 1 0 ] # MFVec3f
  20.     }
  21.     
  22.     # Reflect the triangle and append (two triangles)
  23.     APPEND object:point convert3D(convert4D(object:point)*yzReflect())
  24.         
  25.     # Now display the two triangles
  26.     
  27.     IndexedFaceSet {
  28.         coordIndex [0, 1, 2, 0, -1, 3, 4, 5, 3, -1] 
  29.     }
  30. }