<<VRML 2.0 - An Introductory view by examples

Cylinder

[geometries' example]                                          [run]

it defines a cylinder centered at (0,0,0) in the local coordinate system and whose central axis is aligned with the local Y-axis.

{
field SFFloat height 2
field SFFloat radius 1 # radius of base and top
field SFBool side TRUE # specify whether side surface is created
field SFBool top TRUE # specify whether top cap is created
field SFBool bottom TRUE # specify whether bottom cap is created
}

It is used as a node inside a Shape node.

  Shape{
        geometry Cylinder{height 1
                          radius 2
                          top FALSE  }
        }