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

Go to the source code of this file.

Namespaces

namespace  openvdb
namespace  openvdb::v1_1_0
namespace  openvdb::v1_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.
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.
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.
static OPENVDB_DEPRECATED double triToPtnDistSqr (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2, const Vec3d &point)