228

Controlling color on coordinate-based geometry
Syntax: IndexedLineSet

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