Blender
V3.3
|
Classes | |
class | Transform |
Functions | |
template<class T > | |
T | closestPointToSegment (const T &P, const T &A, const T &B, real &distance) |
Vec3r | closestPointOnPolygon (const Vec3r &point, const Polygon3r &poly) |
real | distancePointToPolygon (const Vec3r &point, const Polygon3r &poly) |
bool | insideProscenium (const real proscenium[4], const Polygon3r &polygon) |
vector< Vec3r > | enumerateVertices (const vector< WOEdge * > &fedges) |
void | getDefaultViewProscenium (real viewProscenium[4]) |
void | expandProscenium (real proscenium[4], const Polygon3r &polygon) |
void | expandProscenium (real proscenium[4], const Vec3r &point) |
|
inline |
Definition at line 56 of file GridHelpers.h.
References closest(), closestPointToSegment(), blender::math::distance(), Freestyle::Geometry::Polygon3r::getNormal(), Freestyle::Geometry::Polygon< Point >::getVertices(), point, Freestyle::Geometry::Polygon3r::rayIntersect(), t, and v.
T Freestyle::GridHelpers::closestPointToSegment | ( | const T & | P, |
const T & | A, | ||
const T & | B, | ||
real & | distance | ||
) |
Computes the distance from a point P to a segment AB
Definition at line 28 of file GridHelpers.h.
References A, B, usdtokens::b(), blender::math::distance(), P(), and T.
Referenced by closestPointOnPolygon().
|
inline |
Definition at line 81 of file GridHelpers.h.
References blender::math::distance(), Freestyle::GeomUtils::distPointSegment(), Freestyle::Geometry::Polygon3r::getNormal(), Freestyle::Geometry::Polygon< Point >::getVertices(), point, Freestyle::Geometry::Polygon3r::rayIntersect(), t, and v.
Referenced by Freestyle::SphericalGrid::OccluderData::OccluderData().
Definition at line 138 of file GridHelpers.h.
Referenced by Freestyle::OccluderSource::buildCachedPolygon(), and Freestyle::OccluderSource::getCameraSpacePolygon().
|
inline |
Definition at line 152 of file GridHelpers.h.
References blender::robust_pred::epsilon, and Freestyle::Geometry::Polygon< Point >::getBBox().
Referenced by Freestyle::GridDensityProvider::calculateOptimalProscenium(), and Freestyle::OccluderSource::getOccluderProscenium().
Definition at line 176 of file GridHelpers.h.
References blender::robust_pred::epsilon, and point.
Definition at line 12 of file GridHelpers.cpp.
References g_freestyle, and FreestyleGlobals::viewport.
Referenced by Freestyle::CulledOccluderSource::cullViewEdges(), and Freestyle::ViewMapBuilder::CullViewEdges().
|
inline |
Definition at line 112 of file GridHelpers.h.
References Freestyle::Geometry::Polygon< Point >::getBBox(), Freestyle::Geometry::Polygon< Point >::getVertices(), and Freestyle::GeomUtils::overlapTriangleBox().