Table of contents Chapter index Previous slide Next slide 103
Syntax: DEF

Naming nodes
Syntax: DEF
  • The DEF syntax gives a name to a node

    Shape {
    
        appearance Appearance {
    
            material DEF RedColor Material {
    
                diffuseColor 1.0 0.0 0.0
    
            }
    
        }
    
        geometry . . .
    
    }