VRML Code Example

Excerpts from the NCSA Black Hole Collision diagram. The whole demo file contains 12K lines of data for 'Coordinate3' and 'IndexedFaceSet'.
#VRML V1.0 ascii
Separator {
 ShapeHints {
   shapeType UNKNOWN_SHAPE_TYPE
   vertexOrdering COUNTERCLOCKWISE
  }
  MaterialBinding {
     value DEFAULT
  }
  Material {
     ambientColor 0.7265 0.4204 0.4286
     diffuseColor 0.0898 0.4286 0.0531
     specularColor 0.3347 0.5918 0.3714
  }
  Coordinate3 {
      point [ 0 0 0
          ,  1.592766  0.000000 -8.000000
          ,  1.592766  0.000000 -8.000000
          ,  1.591648 -0.063781 -8.000000
          ,  1.588046 -0.127231 -8.000000
          ,  1.582046 -0.190245 -8.000000
          ,  1.573657 -0.252610 -8.000000
          ,  1.562918 -0.314169 -8.000000
     ]
  }
  IndexedFaceSet {
      coordIndex [ 0,0,0,-1
       ,         2,         1,       103, -1
       ,         2,       103,       104, -1
       ,         3,         2,       104, -1
       ,         3,       104,       105, -1
       ,         4,         3,       105, -1
       ,         4,       105,       106, -1
       ,         5,         4,       106, -1

 ]
   }
}
        ]
   }
}

# An Axis smaller than the old one.

Separator {
  Transform {
     translation 0 0 6
  }
  Scale {
     scaleFactor 6 6 6
  }
  Transform {
 translation 0 0 -1
  }
  Cylinder {
 radius .01
 height 1.6
  }
  Transform {
 rotation 0 0 1 1.57080
  }
  Cylinder {
 radius .01
 height 1.6
  }
  Transform {
 rotation 1 0 0 1.57080
 translation 0 0 -.8
  }
  Cylinder {
 radius .01
 height 1.6
  }
  Transform {
 rotation 1 0 0 3.141592
 translation 0 -.8 0
  }

  Cone {
 bottomRadius 0.07
 height .15
  }
}


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.