deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r3d.multiresolution
Class MeshFragmentData

java.lang.Object
  extended by org.deegree.rendering.r3d.multiresolution.MeshFragmentData

public class MeshFragmentData
extends Object

The MeshFragmentData holds the fragment data.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
MeshFragmentData(PooledByteBuffer rawBuffer, FloatBuffer vertexBuffer, FloatBuffer normalsBuffer, Buffer indexBuffer)
          Construct from the given rawbuffer.
 
Method Summary
 void freeBuffers()
          free the pooled buffer.
 FloatBuffer getNormals()
           
 int getNumTriangles()
           
 Buffer getTriangles()
          Returns the buffer that contains the vertices of the triangles.
 FloatBuffer getVertices()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshFragmentData

public MeshFragmentData(PooledByteBuffer rawBuffer,
                        FloatBuffer vertexBuffer,
                        FloatBuffer normalsBuffer,
                        Buffer indexBuffer)
Construct from the given rawbuffer.

Parameters:
rawBuffer -
vertexBuffer -
normalsBuffer -
indexBuffer -
Method Detail

getNumTriangles

public int getNumTriangles()
Returns:
the number of triangles

getVertices

public FloatBuffer getVertices()
Returns:
the vertices.

getTriangles

public Buffer getTriangles()
Returns the buffer that contains the vertices of the triangles.

The returned buffer can be (depending on the number of vertices in the fragment):

Returns:
buffer the contains the triangles (as vertex indexes)

getNormals

public FloatBuffer getNormals()
Returns:
the normal buffer

freeBuffers

public void freeBuffers()
free the pooled buffer.


deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>