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

Go to the source code of this file.

Namespaces

namespace  openvdb
 
namespace  openvdb::v0_104_0
 
namespace  openvdb::v0_104_0::math
 

Functions

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...
 
double sTri3ToPointDistSqr (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2, const Vec3d &point, Vec2d &uv, double epsilon=1e-10)
 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 double triToPtnDistSqr (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2, const Vec3d &point)