|  | OGRE 14.3
    Object-Oriented Graphics Rendering Engine | 
The class represents a polygon in 3D space. More...
#include <OgrePolygon.h>
| Public Types | |
| typedef std::pair< Vector3, Vector3 > | Edge | 
| typedef std::multimap< Vector3, Vector3 > | EdgeMap | 
| typedef std::vector< Vector3 > | 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. | |
| Polygon & | operator= (const Ogre::Polygon &) | 
| 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. | |
The class represents a polygon in 3D space.
It is made up of 3 or more vertices in a single plane, listed in counter-clockwise order.
| typedef std::vector<Vector3> Ogre::Polygon::VertexList | 
| typedef std::multimap<Vector3, Vector3> Ogre::Polygon::EdgeMap | 
| typedef std::pair< Vector3, Vector3> Ogre::Polygon::Edge | 
| Ogre::Polygon::Polygon | ( | ) | 
Referenced by Polygon(), operator!=(), operator<<, operator=(), and operator==().
| Ogre::Polygon::~Polygon | ( | ) | 
| void Ogre::Polygon::insertVertex | ( | const Vector3 & | vdata, | 
| size_t | vertexIndex ) | 
Inserts a vertex at a specific position.
| void Ogre::Polygon::insertVertex | ( | const Vector3 & | vdata | ) | 
Inserts a vertex at the end of the polygon.
| const Vector3 & Ogre::Polygon::getVertex | ( | size_t | vertex | ) | const | 
Returns a vertex.
| void Ogre::Polygon::setVertex | ( | const Vector3 & | vdata, | 
| size_t | vertexIndex ) | 
Sets a specific vertex of a polygon.
| void Ogre::Polygon::removeDuplicates | ( | void | ) | 
Removes duplicate vertices from a polygon.
| size_t Ogre::Polygon::getVertexCount | ( | void | ) | const | 
Vertex count.
| const Vector3 & Ogre::Polygon::getNormal | ( | void | ) | const | 
Returns the polygon normal.
| void Ogre::Polygon::deleteVertex | ( | size_t | vertex | ) | 
Deletes a specific vertex.
| bool Ogre::Polygon::isPointInside | ( | const Vector3 & | point | ) | const | 
Determines if a point is inside the polygon.
A point is inside a polygon if it is both on the polygon's plane, and within the polygon's bounds. Polygons are assumed to be convex and planar.
| void Ogre::Polygon::storeEdges | ( | EdgeMap * | edgeMap | ) | const | 
Stores the edges of the polygon in ccw order.
The vertices are copied so the user has to take the deletion into account.
| void Ogre::Polygon::reset | ( | void | ) | 
Resets the object.
| bool Ogre::Polygon::operator== | ( | const Polygon & | rhs | ) | const | 
Determines if the current object is equal to the compared one.
References Polygon().
| 
 | inline | 
Determines if the current object is not equal to the compared one.
References Polygon().
| Polygon & Ogre::Polygon::operator= | ( | const Ogre::Polygon & | ) | 
References Polygon().