org.jocl.cloth
Class EdgeData

java.lang.Object
  extended by org.jocl.cloth.EdgeData
All Implemented Interfaces:
java.io.Serializable

 class EdgeData
extends java.lang.Object
implements java.io.Serializable

A plain structure holding the data of a set of edges.


Field Summary
(package private)  float[] edgeRestLengths
          Stores for each edge its rest length.
(package private)  int[] edgeVertexIndices
          The vertex indices for each edge.
(package private)  int numEdges
          The number of edges
 
Constructor Summary
EdgeData()
          Default constructor
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numEdges

int numEdges
The number of edges


edgeVertexIndices

int[] edgeVertexIndices
The vertex indices for each edge.
 edgeVertexIndices[edgeIndex*2+0] = edge.vertexIndex0;
 edgeVertexIndices[edgeIndex*2+1] = edge.vertexIndex1;
 where
 edgeIndex = 0...numEdges-1
 


edgeRestLengths

float[] edgeRestLengths
Stores for each edge its rest length.
 edgeRestLengths[edgeIndex] = edge.restLength;
 where
 edgeIndex = 0...numEdges-1
 

Constructor Detail

EdgeData

EdgeData()
Default constructor

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object