OGRE-Next
3.0.0
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 StdMultiMap< Vector3, Vector3 > | EdgeMap |
typedef vector< Vector3 >::type | VertexList |
Public Member Functions | |
Polygon () | |
Polygon (const Polygon &cpy) | |
~Polygon () | |
void | deleteVertex (size_t vertex) |
Deletes a specific vertex. More... | |
const Vector3 & | getNormal () const |
Returns the polygon normal. More... | |
const Vector3 & | getVertex (size_t vertex) const |
Returns a vertex. More... | |
size_t | getVertexCount () const |
Vertex count. More... | |
void | insertVertex (const Vector3 &vdata) |
Inserts a vertex at the end of the polygon. More... | |
void | insertVertex (const Vector3 &vdata, size_t vertexIndex) |
Inserts a vertex at a specific position. More... | |
bool | isPointInside (const Vector3 &point) const |
Determines if a point is inside the polygon. More... | |
bool | operator!= (const Polygon &rhs) const |
Determines if the current object is not equal to the compared one. More... | |
bool | operator== (const Polygon &rhs) const |
Determines if the current object is equal to the compared one. More... | |
void | removeDuplicates () |
Removes duplicate vertices from a polygon. More... | |
void | reset () |
Resets the object. More... | |
void | setVertex (const Vector3 &vdata, size_t vertexIndex) |
Sets a specific vertex of a polygon. More... | |
void | storeEdges (EdgeMap *edgeMap) const |
Stores the edges of the polygon in ccw order. More... | |
The class represents a polygon in 3D space.
typedef std::pair<Vector3, Vector3> Ogre::Polygon::Edge |
typedef StdMultiMap<Vector3, Vector3> Ogre::Polygon::EdgeMap |
typedef vector<Vector3>::type Ogre::Polygon::VertexList |
Ogre::Polygon::Polygon | ( | ) |
Ogre::Polygon::~Polygon | ( | ) |
Ogre::Polygon::Polygon | ( | const Polygon & | cpy | ) |
void Ogre::Polygon::deleteVertex | ( | size_t | vertex | ) |
Deletes a specific vertex.
const Vector3& Ogre::Polygon::getNormal | ( | ) | const |
Returns the polygon normal.
const Vector3& Ogre::Polygon::getVertex | ( | size_t | vertex | ) | const |
Returns a vertex.
size_t Ogre::Polygon::getVertexCount | ( | ) | const |
Vertex count.
void Ogre::Polygon::insertVertex | ( | const Vector3 & | vdata | ) |
Inserts a vertex at the end of the polygon.
void Ogre::Polygon::insertVertex | ( | const Vector3 & | vdata, |
size_t | vertexIndex | ||
) |
Inserts a vertex at a specific position.
bool Ogre::Polygon::isPointInside | ( | const Vector3 & | point | ) | const |
Determines if a point is inside the polygon.
|
inline |
Determines if the current object is not equal to the compared one.
bool Ogre::Polygon::operator== | ( | const Polygon & | rhs | ) | const |
Determines if the current object is equal to the compared one.
void Ogre::Polygon::removeDuplicates | ( | ) |
Removes duplicate vertices from a polygon.
void Ogre::Polygon::reset | ( | ) |
Resets the object.
void Ogre::Polygon::setVertex | ( | const Vector3 & | vdata, |
size_t | vertexIndex | ||
) |
Sets a specific vertex of a polygon.
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.