Table of Contents Chapter Index Previous Slide Next Slide 214
Syntax: IndexedLineSet

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

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