Table of Contents Chapter Index Previous Slide Next Slide 177
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
  • Use an IndexedLineSet node to draw a line from coordinate to coordinate in the list