Table of Contents Chapter Index Previous Slide Next Slide 123
The colorPerVertex Field

Binding Colors to Coordinate-based Geometry

The colorPerVertex Field
  • In IndexedFaceSet, IndexedLineSet nodes

  • When colorPerVertex is TRUE, specify one color index per coordinate index (don't forget to account for the -1's !)

  • When colorPerVertex is FALSE, specify one color index per face or line (eg. per -1)