Table of Contents Chapter Index Previous Slide Next Slide 217
Syntax: IndexedFaceSet

Binding colors to coordinate-based geometry
Syntax: IndexedFaceSet
  • An IndexedFaceSet geometry node creates geometry out of faces
  • color - a list of colors
  • color indexes - selects colors from list (just like selecting coordinates)
  • color per vertex - control color binding

    IndexedFaceSet {
        coord Coordinate { . . . }
        coordIndex [ . . . ]
        color Color { . . . }
        colorIndex [ . . . ]
        colorPerVertex TRUE
    }