OpenVDB  2.1.0
Namespaces | Functions
Proximity.h File Reference
#include <openvdb/Types.h>

Go to the source code of this file.

Namespaces

 openvdb
 
 openvdb::v2_1_0
 
 openvdb::v2_1_0::math
 

Functions

OPENVDB_API Vec3d closestPointOnTriangleToPoint (const Vec3d &a, const Vec3d &b, const Vec3d &c, const Vec3d &p, Vec3d &uvw)
 Closest Point on Triangle to Point. Given a triangle abc and a point p, returns the point on abc closest to p and the corresponding barycentric coordinates. More...
 
OPENVDB_API Vec3d closestPointOnSegmentToPoint (const Vec3d &a, const Vec3d &b, const Vec3d &p, double &t)
 Closest Point on Line Segment to Point. Given segment ab and point p, returns the point on ab closest to p and t the parametric distance to b. More...
 
OPENVDB_API OPENVDB_DEPRECATED
double 
sLineSeg3ToPointDistSqr (const Vec3d &p0, const Vec3d &p1, const Vec3d &point, double &t, double epsilon=1e-10)
 Squared distance of a line segment p(t) = (1-t)*p0 + t*p1 to point. More...
 
OPENVDB_API OPENVDB_DEPRECATED
double 
sTri3ToPointDistSqr (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2, const Vec3d &point, Vec2d &uv, double epsilon)
 Slightly modified version of the algorithm described in "Geometric Tools for Computer Graphics" pg 376 to 382 by Schneider and Eberly. Extended to handle the case of a degenerate triangle. Also returns barycentric rather than (s,t) coordinates. More...
 
static OPENVDB_DEPRECATED double triToPtnDistSqr (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2, const Vec3d &point)