Introduction to 3D Graphics and VRML

[ Previous | Index | Next ]


Prefined VRML Shapes

Shape

Shape {
   appearance NULL
   geometry   NULL
}

Box

geometry Box { size 2.0 2.0 2.0 }

Cylinder

geometry Cylinder {
   radius 1.0
   height 2.0
}

Cone

geometry Box { 
   bottomRadius 1.0
   height 2.0 
}

Sphere

geometry Sphere { radius 1.0 }

Text

geometry Text { 
   string "3D Text"
   fontStyle {
      family "SERIF"
      style  "BOLD"
   }
}

Author: Michael Louka (Michael.Louka@of.telia.no)
Last Updated: 31 October 1998