Table of contents Chapter index Previous slide Next slide 183
Using line set coordinate indexes

Building shapes out of points, lines, and faces
Using line set coordinate indexes
  • Each coordinate in a Coordinate node is implicitly numbered
  • Index 0 is the first coordinate
  • Index 1 is the second coordinate, etc.
  • To build a line shape
  • Make a list of coordinates, using their indexes

  • List coordinate indexes in the coordIndex field of the IndexedLineSet node