org.openmali.spatial
Interface TriangleContainer

All Known Subinterfaces:
WriteableTriangleContainer

public interface TriangleContainer

Provides access to the triangles in an object.


Method Summary
 boolean getTriangle(int i, Triangle triangle)
          This allows the spatial container to have access to all the triangles in the object.
 int getTriangleCount()
           
 

Method Detail

getTriangleCount

int getTriangleCount()
Returns:
the number of triangles in this object.

getTriangle

boolean getTriangle(int i,
                    Triangle triangle)
This allows the spatial container to have access to all the triangles in the object. This allows for the computation of bounding boxes which completely enclose geometry. The triangles need to be returned in world coordinates, not local coordinates.

Parameters:
i -
triangle -