Go to the documentation of this file.
59 typedef std::pair< Vector3, Vector3>
Edge;
134 {
return !( *
this == rhs ); }
const Vector3 & getNormal(void) const
Returns the polygon normal.
void deleteVertex(size_t vertex)
Deletes a specific vertex.
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.
size_t getVertexCount(void) const
Vertex count.
multimap< Vector3, Vector3 >::type EdgeMap
const Vector3 & getVertex(size_t vertex) const
Returns a vertex.
Polygon(const Polygon &cpy)
bool operator!=(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator,...
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
bool isPointInside(const Vector3 &point) const
Determines if a point is inside the polygon.
void updateNormal(void) const
Updates the normal.
void insertVertex(const Vector3 &vdata, size_t vertexIndex)
Inserts a vertex at a specific position.
void reset(void)
Resets the object.
vector< Vector3 >::type VertexList
std::multimap< K, V, P, A > type
std::pair< Vector3, Vector3 > Edge
void insertVertex(const Vector3 &vdata)
Inserts a vertex at the end of the polygon.
void removeDuplicates(void)
Removes duplicate vertices from a polygon.
bool operator==(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator,...
The class represents a polygon in 3D space.
Standard 3-dimensional vector.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.