Table of contents Chapter index Previous slide Next slide 35
Syntax: Cone

Building primitive shapes
Syntax: Cone
  • A Cone geometry node builds an upright cone
  • height and bottomRadius - cylinder size
  • bottom and side - parts on or off

  • [ cone.wrl ]
    Shape {
    
        appearance Appearance {
    
            material Material { }
    
        }
    
        geometry Cone {
    
            height 2.0
    
            bottomRadius 1.0
    
            bottom TRUE
    
            side TRUE
    
        }
    
    }