|
OOFEM 3.0
|
#include <CSG.h>
Public Types | |
| enum | Classification { COPLANAR = 0 , FRONT = 1 , BACK = 2 , SPANNING = 3 } |
Public Member Functions | |
| Plane () | |
| Plane (const Vector &a, const Vector &b, const Vector &c) | |
| bool | ok () const |
| void | flip () |
| void | splitpolygon (const Polygon &poly, std::vector< Polygon > &coplanarFront, std::vector< Polygon > &coplanarBack, std::vector< Polygon > &front, std::vector< Polygon > &back) const |
| Classification | classify (const Vector &p) const |
Public Attributes | |
| Vector | normal |
| double | w |
|
inline |
Definition at line 170 of file CSG.h.
References BACK, COPLANAR, csgjs_EPSILON, dot(), FRONT, and normal.
Referenced by splitpolygon().
|
inline |
|
inline |
Definition at line 149 of file CSG.h.
References length().
Referenced by CSGNode::build(), and CSGNode::clippolygons().
| void Plane::splitpolygon | ( | const Polygon & | poly, |
| std::vector< Polygon > & | coplanarFront, | ||
| std::vector< Polygon > & | coplanarBack, | ||
| std::vector< Polygon > & | front, | ||
| std::vector< Polygon > & | back ) const |
Definition at line 576 of file CSG.h.
References BACK, classify(), COPLANAR, dot(), FRONT, interpolate(), normal, Polygon::plane, Vertex::pos, SPANNING, Polygon::vertices, and w.
Referenced by CSGNode::build(), and CSGNode::clippolygons().
| Vector Plane::normal |
Definition at line 143 of file CSG.h.
Referenced by classify(), Plane(), Plane(), and splitpolygon().
| double Plane::w |
Definition at line 144 of file CSG.h.
Referenced by Plane(), Plane(), and splitpolygon().