OGRE
1.9.0
|
The class represents a polygon in 3D space. More...
#include <OgrePolygon.h>
Public Types | |
typedef std::pair< Vector3, Vector3 > | Edge |
typedef multimap< Vector3, Vector3 >::type | EdgeMap |
typedef vector< Vector3 >::type | VertexList |
Public Member Functions | |
Polygon () | |
Polygon (const Polygon &cpy) | |
~Polygon () | |
void | deleteVertex (size_t vertex) |
Deletes a specific vertex. | |
const Vector3 & | getNormal (void) const |
Returns the polygon normal. | |
const Vector3 & | getVertex (size_t vertex) const |
Returns a vertex. | |
size_t | getVertexCount (void) const |
Vertex count. | |
void | insertVertex (const Vector3 &vdata) |
Inserts a vertex at the end of the polygon. | |
void | insertVertex (const Vector3 &vdata, size_t vertexIndex) |
Inserts a vertex at a specific position. | |
bool | isPointInside (const Vector3 &point) const |
Determines if a point is inside the polygon. | |
bool | operator!= (const Polygon &rhs) const |
Determines if the current object is not equal to the compared one. | |
bool | operator== (const Polygon &rhs) const |
Determines if the current object is equal to the compared one. | |
void | removeDuplicates (void) |
Removes duplicate vertices from a polygon. | |
void | reset (void) |
Resets the object. | |
void | setVertex (const Vector3 &vdata, size_t vertexIndex) |
Sets a specific vertex of a polygon. | |
void | storeEdges (EdgeMap *edgeMap) const |
Stores the edges of the polygon in ccw order. | |
Protected Member Functions | |
void | updateNormal (void) const |
Updates the normal. | |
Protected Attributes | |
bool | mIsNormalSet |
Vector3 | mNormal |
VertexList | mVertexList |
Friends | |
_OgreExport friend std::ostream & | operator<< (std::ostream &strm, const Polygon &poly) |
Prints out the polygon data. | |
The class represents a polygon in 3D space.
Definition at line 52 of file OgrePolygon.h.
typedef std::pair< Vector3, Vector3> Ogre::Polygon::Edge |
Definition at line 59 of file OgrePolygon.h.
Definition at line 58 of file OgrePolygon.h.
Definition at line 56 of file OgrePolygon.h.
Ogre::Polygon::Polygon | ( | ) |
Ogre::Polygon::~Polygon | ( | ) |
Inserts a vertex at the end of the polygon.
Inserts a vertex at a specific position.
Determines if a point is inside the polygon.
Determines if the current object is not equal to the compared one.
Definition at line 133 of file OgrePolygon.h.
Determines if the current object is equal to the compared one.
Sets a specific vertex of a polygon.
Stores the edges of the polygon in ccw order.
The vertices are copied so the user has to take the deletion into account.
|
friend |
Prints out the polygon data.
|
mutableprotected |
Definition at line 64 of file OgrePolygon.h.
|
mutableprotected |
Definition at line 63 of file OgrePolygon.h.
|
protected |
Definition at line 62 of file OgrePolygon.h.