org.ogre4j
Interface IConvexBody

All Superinterfaces:
INativeObject
All Known Implementing Classes:
ConvexBody

public interface IConvexBody
extends INativeObject


Nested Class Summary
static interface IConvexBody.IPolygonList
           
 
Method Summary
 void clip(IAxisAlignedBox aab)
          Clips the body with an AAB.
 void clip(IConvexBody body)
          Clips the body with another body.
 void clip(IFrustum frustum)
          Clips the body with a frustum.
 void clip(IPlane pl, boolean keepNegative)
          Clips the object by the positive half space of a plane
 void define(IAxisAlignedBox aab)
          Build a new polygon representation from an AAB.
 void define(IFrustum frustum)
          Build a new polygon representation from a frustum.
 void extend(IVector3 pt)
          Extends the existing body to incorporate the passed in point as a convex hull.
 void getAABB(IAxisAlignedBox returnValue)
          Returns an AABB representation.
 IVector3 getNormal(int poly)
          Returns the normal of a specified polygon.
 IPolygon getPolygon(int poly)
          Returns a polygon.
 int getPolygonCount()
          Returns the current number of polygons.
 IVector3 getVertex(int poly, int vertex)
          Returns a specific vertex of a polygon.
 int getVertexCount(int poly)
          Returns the number of vertices for a polygon
 boolean hasClosedHull()
          Checks if the body has a closed hull.
 void logInfo()
          details of this body
 void mergePolygons()
          Merges all neighboring polygons into one single polygon if they are lay in the same plane.
 boolean operatorEqual(IConvexBody rhs)
          Determines if the current object is equal to the compared one.
 boolean operatorNotEqual(IConvexBody rhs)
          Determines if the current object is not equal to the compared one.
 void reset()
          Resets the object.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

define

void define(IFrustum frustum)
Build a new polygon representation from a frustum.


define

void define(IAxisAlignedBox aab)
Build a new polygon representation from an AAB.


clip

void clip(IFrustum frustum)
Clips the body with a frustum. The resulting holes are filled with new polygons.


clip

void clip(IAxisAlignedBox aab)
Clips the body with an AAB. The resulting holes are filled with new polygons.


clip

void clip(IConvexBody body)
Clips the body with another body.


clip

void clip(IPlane pl,
          boolean keepNegative)
Clips the object by the positive half space of a plane


extend

void extend(IVector3 pt)
Extends the existing body to incorporate the passed in point as a convex hull.


reset

void reset()
Resets the object.


getPolygonCount

int getPolygonCount()
Returns the current number of polygons.


getVertexCount

int getVertexCount(int poly)
Returns the number of vertices for a polygon


getPolygon

IPolygon getPolygon(int poly)
Returns a polygon.


getVertex

IVector3 getVertex(int poly,
                   int vertex)
Returns a specific vertex of a polygon.


getNormal

IVector3 getNormal(int poly)
Returns the normal of a specified polygon.


getAABB

void getAABB(IAxisAlignedBox returnValue)
Returns an AABB representation.


hasClosedHull

boolean hasClosedHull()
Checks if the body has a closed hull.


mergePolygons

void mergePolygons()
Merges all neighboring polygons into one single polygon if they are lay in the same plane.


operatorEqual

boolean operatorEqual(IConvexBody rhs)
Determines if the current object is equal to the compared one.


operatorNotEqual

boolean operatorNotEqual(IConvexBody rhs)
Determines if the current object is not equal to the compared one.


logInfo

void logInfo()
details of this body



Copyright © 2007 netAllied GmbH. All Rights Reserved.