103

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 . . .
    }