org.openmali.spatial
Interface VertexContainer
- All Known Implementing Classes:
- VertexList
public interface VertexContainer
Provides access to the vertices in an object.
|
Method Summary |
boolean |
getVertex(int i,
Tuple3f coord)
This allows the spatial container to have access to all the vertices
in the object. |
int |
getVertexCount()
|
getVertexCount
int getVertexCount()
- Returns:
- the number of vertices in this object. This could be the
number of vertices which form a convex hull or it could be the
the total number of vertices in the object. If the object is a triangle then
this would return a count of 3.
getVertex
boolean getVertex(int i,
Tuple3f coord)
- This allows the spatial container to have access to all the vertices
in the object. This allows for the computation of bounding boxes which
completely enclose the bounding box. The vertices need to be returned in
world coordinates, not local coordinates.
- Parameters:
i - coord -