|
Rasterfarm-SDK
|
#include <polygon.h>
Public Member Functions | |
| Polygon () | |
| Polygon (const Vertex2fArray &vertex) | |
| float | getArea () const |
| bool | isClockWise () const |
| bool | isConvex () const |
| Polygon () | |
| Polygon (const Vector3fArray &vertex) | |
| operator Primitive2D::Polygon () | |
| uint | addVertex (const Vertex3f &v) |
| Vector4f | getPlaneEquation () const |
| Vertex3f | centroid () const |
| float | getArea () const |
| float | getBoundingRadius () const |
| Vertex3f | normal () const |
Public Member Functions inherited from VectorArray< Vector2f > | |
| VectorArray (const HeapArray< U > &other) | |
| VectorArray (const VectorArray< U > &other) | |
| VectorArray (const Initializer< Vector2f > &list) | |
| VectorArray (size_t size=0) | |
| VectorArray (const typename HeapArray< Vector2f >::iterator &itBegin, const typename HeapArray< Vector2f >::iterator itEnd) | |
| VectorArray (size_t size, const Vector2f &init) | |
Public Member Functions inherited from VectorArray< Vector3f > | |
| VectorArray (const HeapArray< U > &other) | |
| VectorArray (const VectorArray< U > &other) | |
| VectorArray (const Initializer< Vector3f > &list) | |
| VectorArray (size_t size=0) | |
| VectorArray (const typename HeapArray< Vector3f >::iterator &itBegin, const typename HeapArray< Vector3f >::iterator itEnd) | |
| VectorArray (size_t size, const Vector3f &init) | |
Static Public Member Functions | |
| static bool | isConvex (const Vertex2fArray &vertex) |
| static bool | isMonotone (const Vertex2fArray &vertex) |
| static HeapArray< Vertex2fArray > | decomposeNonConvexToMonotone (const Vertex2fArray &p) |
| static HeapArray< Vertex2fArray > | decomposeMonotoneToConvex (const Vertex2fArray &polygon) |
| static HeapArray< Vertex2fArray > | decomposeNonConvex (const Vertex2fArray &polygon) |
| static bool | isPlanar (const Vertex3fArray &contour) |
| static QuaternionFloat | orient (const Vector3f &normalFrom, const Vector3f &normalTo) |
| static QuaternionFloat | transform2D (const Vector3f &normal) |
A closed, simple Polygon. NOTE: Polygons with holes can be decomposed using class ContourTessellation. Holes can be also be described analytically as Negative-Polygons or Anti-Polygons with contour orientations oppposite that of a Polygon. NOTE: Polygons that are self-intersecting can be detected using class ContourTessellation and decomposed into a set of Polygons.
A convex or closed polygon.
| Polygon::Polygon | ( | ) |
| Polygon::Polygon | ( | const Vertex2fArray & | vertex | ) |
| An | array of vertices ordered by connected segments. |
| Polygon::Polygon | ( | ) |
| Polygon::Polygon | ( | const Vector3fArray & | vertex | ) |
| An | array of vertices ordered by connected segments. |
| uint Polygon::addVertex | ( | const Vertex3f & | v | ) |
| Vertex | to add to this polygon. |
| Vertex3f Polygon::centroid | ( | ) | const |
|
static |
| A | monotone Polygon. |
|
static |
| Non-convex | Polygon. |
|
static |
| Non-convex | Polygon. |
|
inline |
The shoelace formula
| float Polygon::getArea | ( | ) | const |
| float Polygon::getBoundingRadius | ( | ) | const |
| Vector4f Polygon::getPlaneEquation | ( | ) | const |
|
inline |
|
inline |
|
static |
|
static |
|
static |
| Vertex3f Polygon::normal | ( | ) | const |
| Polygon::operator Primitive2D::Polygon | ( | ) |
|
static |
Get the Quaternion delta required to rotate the Face from-and-to the given normal vectors.
|
static |
Get the Quaternion delta required to rotate the Face onto the XY plane.