231

Controlling color on coordinate-based geometry
Syntax: IndexedFaceSet

  • An IndexedFaceSet geometry node creates geometry out of faces
  • color - list of colors
  • colorIndex - selects colors from list
  • colorPerVertex - control color binding
  • Shape {
        appearance Appearance { . . . }
        geometry IndexedFaceSet {
            coord Coordinate { . . . }
            coordIndex [ . . . ]
            color Color { . . . }
            colorIndex [ . . . ]
            colorPerVertex TRUE
        }
    }