Blender
V3.3
|
#include <Polygon.h>
Public Member Functions | |
Polygon3r () | |
Polygon3r (const vector< Vec3r > &vertices, const Vec3r &normal) | |
Polygon3r (const Polygon3r &poly) | |
virtual | ~Polygon3r () |
void | setNormal (const Vec3r &normal) |
Vec3r | getNormal () const |
bool | rayIntersect (const Vec3r &orig, const Vec3r &dir, real &t, real &u, real &v, real epsilon=M_EPSILON) const |
![]() | |
Polygon () | |
Polygon (const vector< Vec3r > &vertices) | |
Polygon (const Polygon< Vec3r > &poly) | |
virtual | ~Polygon () |
const vector< Vec3r > & | getVertices () const |
void | getBBox (Vec3r &min, Vec3r &max) const |
Vec3r | getBBoxCenter () |
Vec3r | getCenter () |
unsigned | getId () const |
void | setVertices (const vector< Vec3r > &vertices) |
void | setId (unsigned id) |
void | computeBBox () |
Additional Inherited Members | |
![]() | |
void * | userdata |
void * | userdata2 |
![]() | |
vector< Vec3r > | _vertices |
Vec3r | _min |
Vec3r | _max |
unsigned | _id |
|
inline |
|
inlinevirtual |
|
inline |
Definition at line 189 of file Polygon.h.
Referenced by Freestyle::GridHelpers::closestPointOnPolygon(), Freestyle::computeVisibility(), Freestyle::GridHelpers::distancePointToPolygon(), and Freestyle::findOccludee().
|
inline |
Check whether the Polygon intersects with the ray or not
Definition at line 195 of file Polygon.h.
References blender::robust_pred::epsilon, Freestyle::GeomUtils::intersectRayTriangle(), t, and v.
Referenced by Freestyle::GridHelpers::closestPointOnPolygon(), Freestyle::computeVisibility(), Freestyle::GridHelpers::distancePointToPolygon(), and Freestyle::findOccludee().