org.ogre4j
Interface IPolygon

All Superinterfaces:
INativeObject
All Known Implementing Classes:
Polygon

public interface IPolygon
extends INativeObject


Nested Class Summary
static interface IPolygon.IEdge
           
static interface IPolygon.IEdgeMap
           
static interface IPolygon.IVertexList
           
 
Method Summary
 void deleteVertex(int vertex)
          Deletes a specific vertex.
 IVector3 getNormal()
          Returns the polygon normal.
 IVector3 getVertex(int vertex)
          Returns a vertex.
 int getVertexCount()
          Vertex count.
 void insertVertex(IVector3 vdata)
          Inserts a vertex at the end of the polygon.
 void insertVertex(IVector3 vdata, int vertexIndex)
          Inserts a vertex at a specific position.
 boolean isPointInside(IVector3 point)
          Determines if a point is inside the polygon.
 boolean operatorEqual(IPolygon rhs)
          Determines if the current object is equal to the compared one.
 boolean operatorNotEqual(IPolygon rhs)
          Determines if the current object is not equal to the compared one.
 void removeDuplicates()
          Removes duplicate vertices from a polygon.
 void reset()
          Resets the object.
 void setVertex(IVector3 vdata, int vertexIndex)
          Sets a specific vertex of a polygon.
 void storeEdges(IPolygon.IEdgeMap edgeMap)
          Stores the edges of the polygon in ccw order.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

insertVertex

void insertVertex(IVector3 vdata,
                  int vertexIndex)
Inserts a vertex at a specific position.


insertVertex

void insertVertex(IVector3 vdata)
Inserts a vertex at the end of the polygon.


getVertex

IVector3 getVertex(int vertex)
Returns a vertex.


setVertex

void setVertex(IVector3 vdata,
               int vertexIndex)
Sets a specific vertex of a polygon.


removeDuplicates

void removeDuplicates()
Removes duplicate vertices from a polygon.


getVertexCount

int getVertexCount()
Vertex count.


getNormal

IVector3 getNormal()
Returns the polygon normal.


deleteVertex

void deleteVertex(int vertex)
Deletes a specific vertex.


isPointInside

boolean isPointInside(IVector3 point)
Determines if a point is inside the polygon.


storeEdges

void storeEdges(IPolygon.IEdgeMap edgeMap)
Stores the edges of the polygon in ccw order. The vertices are copied so the user has to take the deletion into account.


reset

void reset()
Resets the object.


operatorEqual

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


operatorNotEqual

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



Copyright © 2007 netAllied GmbH. All Rights Reserved.