#include <OgrePolygon.h>
Public Types | |
| typedef std::vector< Vector3 > | VertexList |
| typedef std::multimap< Vector3, Vector3 > | EdgeMap |
| typedef std::pair< Vector3, Vector3 > | Edge |
Public Member Functions | |
| Polygon () | |
| ~Polygon () | |
| Polygon (const Polygon &cpy) | |
| void | insertVertex (const Vector3 &vdata, size_t vertexIndex) |
| Inserts a vertex at a specific position. | |
| void | insertVertex (const Vector3 &vdata) |
| Inserts a vertex at the end of the polygon. | |
| const Vector3 & | getVertex (size_t vertex) const |
| Returns a vertex. | |
| void | setVertex (const Vector3 &vdata, size_t vertexIndex) |
| Sets a specific vertex of a polygon. | |
| void | removeDuplicates (void) |
| Removes duplicate vertices from a polygon. | |
| size_t | getVertexCount (void) const |
| Vertex count. | |
| const Vector3 & | getNormal (void) |
| Returns the polygon normal. | |
| void | deleteVertex (size_t vertex) |
| Deletes a specific vertex. | |
| void | storeEdges (EdgeMap *edgeMap) const |
| Stores the edges of the polygon in ccw order. | |
| void | reset (void) |
| Resets the object. | |
| bool | operator== (const Polygon &rhs) const |
| Determines if the current object is equal to the compared one. | |
| bool | operator!= (const Polygon &rhs) const |
| Determines if the current object is not equal to the compared one. | |
Protected Member Functions | |
| void | updateNormal (void) |
| Updates the normal. | |
Protected Attributes | |
| VertexList | mVertexList |
| Vector3 | mNormal |
| bool | mIsNormalSet |
Friends | |
| _OgreExport friend std::ostream & | operator<< (std::ostream &strm, const Polygon &poly) |
| Prints out the polygon data. | |
Definition at line 46 of file OgrePolygon.h.
|
|
Definition at line 53 of file OgrePolygon.h. |
|
|
Definition at line 52 of file OgrePolygon.h. |
|
|
Definition at line 50 of file OgrePolygon.h. |
|
|
|
|
|
|
|
|
|
|
|
Deletes a specific vertex.
|
|
|
Returns the polygon normal.
|
|
|
Returns a vertex.
|
|
|
Vertex count.
|
|
|
Inserts a vertex at the end of the polygon.
|
|
||||||||||||
|
Inserts a vertex at a specific position.
|
|
|
Determines if the current object is not equal to the compared one.
Definition at line 119 of file OgrePolygon.h. |
|
|
Determines if the current object is equal to the compared one.
|
|
|
Removes duplicate vertices from a polygon.
|
|
|
Resets the object.
|
|
||||||||||||
|
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. |
|
|
Updates the normal.
|
|
||||||||||||
|
Prints out the polygon data.
|
|
|
Definition at line 58 of file OgrePolygon.h. |
|
|
Definition at line 57 of file OgrePolygon.h. |
|
|
Definition at line 56 of file OgrePolygon.h. |
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 30 10:52:21 2007