org.jocl.cloth
Class NormalData

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

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

A plain structure holding the data that is associated with a ParticleData and stores the additional information that is necessary to compute normals in parallel.


Field Summary
(package private)  int maxVertexFaces
          The maximum number of faces that any vertex belongs to
(package private)  int[] vertexFaceCounters
          Stores for each vertex number of faces that each vertex belongs to.
(package private)  int[] vertexFaceIndices
          The indices of the faces that each vertex belongs to.
 
Constructor Summary
NormalData()
          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

vertexFaceCounters

int[] vertexFaceCounters
Stores for each vertex number of faces that each vertex belongs to.
 vertexFaceIndices[vertexIndex*maxVertexFaces+0] = faceIndex0 
 vertexFaceIndices[vertexIndex*maxVertexFaces+1] = faceIndex1 
 ...
 vertexFaceIndices[vertexIndex*maxVertexFaces+N] = faceIndexN
 where 
 N = maxVertexFaces-1 
 


maxVertexFaces

int maxVertexFaces
The maximum number of faces that any vertex belongs to


vertexFaceIndices

int[] vertexFaceIndices
The indices of the faces that each vertex belongs to.
 vertexFaceIndices[vertexIndex*maxVertexFaces+0] = faceIndex0 
 vertexFaceIndices[vertexIndex*maxVertexFaces+1] = faceIndex1 
 ...
 vertexFaceIndices[vertexIndex*maxVertexFaces+N] = faceIndexN
 
 where 
 vertexIndex = 0...numVertices-1 
 N = maxVertexFaces-1  
 

Constructor Detail

NormalData

NormalData()
Default constructor

Method Detail

toString

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