#VRML V2.0 utf8 # WorldInfo to give some basic information WorldInfo { title "VRML 2.0 Extrusion Example" } # Extrusion (example of a simple 3D shape extrusion) Transform { translation 0 0 0 children [ Shape { geometry Extrusion { crossSection [ 1 1, -1 1, -1 -1, 1 -1, 1 1 # Square cross-section ] spine [ 0 0 0, 0 1 0, 0 2 0 # Extruded along a vertical line ] creaseAngle 1.57 # Smooth shading at creases scale [ 1 1, 0.5 0.5 # Uniform scaling of the extrusion along the spine ] } appearance Appearance { material Material { diffuseColor 0 1 0 # Green } } } ] }