#include <polygon.h>
Public Methods | |
Constructors | |
| Polygon () | |
| . | |
| Polygon (const Polygon &poly) | |
| . | |
| Polygon (const V3 *verts, int numVerts) | |
| . | |
| Polygon (const std::vector< V3 > &verts) | |
| . | |
Initializers | |
| void | Set (const V3 *verts, int numVerts) |
| Assumes input is set of points making a convex polygon. | |
| void | Set (const std::vector< V3 > &verts) |
| Assumes input is set of points making a convex polygon. | |
Accessors | |
| const std::vector< V3 > & | GetVerts () const |
| . | |
| const V3 & | GetNormal () const |
| . | |
| const Plane & | GetPlane () const |
| . | |
| const std::vector< int > & | GetFanIndices () const |
| . | |
Overloaded operators | |
| void | operator= (const Polygon &poly) |
| . | |
| bool | operator== (const Polygon &poly) const |
| . | |
Operations | |
| void | ReverseWinding (const Polygon &poly) |
| Reverses the winding order of the vertices in place. | |
| int | Split (const Plane &pl, Polygon &oFrontPoly, Polygon &oBackPoly, float eps=constants::Eps3) |
| Splits a polygon into two using the plane. | |
| int | Stitch (const Polygon &poly1, Polygon poly2, bool swapped=false) |
| Takes two polygons on the same plane and stores the combined polygon. | |
|
||||||||||||||||||||
|
Splits a polygon into two using the plane.
|
|
||||||||||||||||
|
Takes two polygons on the same plane and stores the combined polygon.
|
1.2.17