org.jocl.cloth
Class FaceData

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

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

A plain structure holding the data of a set of faces


Field Summary
(package private)  int[] faceVertexIndices
          The vertex indices of each face.
(package private)  int numFaces
          The number of faces (triangles).
 
Constructor Summary
FaceData()
          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

numFaces

int numFaces
The number of faces (triangles).


faceVertexIndices

int[] faceVertexIndices
The vertex indices of each face.
 faceVertexIndices[faceIndex*3+0] = face.vertexIndex0;
 faceVertexIndices[faceIndex*3+1] = face.vertexIndex1;
 faceVertexIndices[faceIndex*3+2] = face.vertexIndex2;
 where
 faceIndex = 0...numFaces-1
 

Constructor Detail

FaceData

FaceData()
Default constructor

Method Detail

toString

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