IndexedLineSet defines a geometrical structure as a set of lines and may be used for the geometry field of a Shape node. It has color, coord, colorIndex, colorPerVertex and coordIndex fields
|
coord holds the set of coordinates,
|
coordIndex defines the path to connect the coordinates given in the coord field to build a polyline. Each value in the coordIndex is an integer index specifying a coordinate from coord field.
-
It is possible to define several polylines in the coordIndex field. Each polyline connects together a string of coordinate indexes up to the end of the index list or up to an index of -1.
-
The next coordinate index following a -1 starts a new polyline.
|