de.grogra.imp3d
Class LineArray

java.lang.Object
  extended by de.grogra.imp3d.VertexArray
      extended by de.grogra.imp3d.LineArray

public class LineArray
extends VertexArray

This class represents a list of line strips.

Author:
Ole Kniemeyer

Field Summary
 IntList lines
          Specifies the line strips.
 
Fields inherited from class de.grogra.imp3d.VertexArray
dimension, userObject, vertices
 
Constructor Summary
LineArray()
           
 
Method Summary
 void freeArrays()
           
 
Methods inherited from class de.grogra.imp3d.VertexArray
addVertex, addVertex, addVertex, computeNormal, init, wasCleared
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

public final IntList lines
Specifies the line strips. Each line strip is represented by a contiguous sequence of vertex indices into VertexArray.vertices. Line strips are separated by negative values in this list. Thus, the individual strips may be of different length.

Note that vertex indices have to me multiplied by VertexArray.dimension in order to obtain list indices for VertexArray.vertices.

Constructor Detail

LineArray

public LineArray()
Method Detail

freeArrays

public void freeArrays()
Overrides:
freeArrays in class VertexArray