OpenVDB 7.0.0

Proximity.h
Go to the documentation of this file.
1 // Copyright Contributors to the OpenVDB Project
2 // SPDX-License-Identifier: MPL-2.0
3
4 #ifndef OPENVDB_MATH_PROXIMITY_HAS_BEEN_INCLUDED
5 #define OPENVDB_MATH_PROXIMITY_HAS_BEEN_INCLUDED
6
7 #include <openvdb/Types.h>
8
9
10 namespace openvdb {
11 OPENVDB_USE_VERSION_NAMESPACE
12 namespace OPENVDB_VERSION_NAME {
13 namespace math {
14
28 OPENVDB_API Vec3d
29 closestPointOnTriangleToPoint(
30 const Vec3d& a, const Vec3d& b, const Vec3d& c, const Vec3d& p, Vec3d& uvw);
31
32
40 OPENVDB_API Vec3d
41 closestPointOnSegmentToPoint(
42 const Vec3d& a, const Vec3d& b, const Vec3d& p, double& t);
43
44 } // namespace math
45 } // namespace OPENVDB_VERSION_NAME
46 } // namespace openvdb
47
48 #endif // OPENVDB_TOOLS_MESH_TO_VOLUME_UTIL_HAS_BEEN_INCLUDED
Types.h
openvdb::v7_0::math::Vec3d
Vec3< double > Vec3d
Definition: Vec3.h:662
OPENVDB_API
#define OPENVDB_API
Helper macros for defining library symbol visibility.
Definition: Platform.h:230
openvdb::v7_0::math::closestPointOnTriangleToPoint
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, return the point on abc close...
OPENVDB_USE_VERSION_NAMESPACE
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:154
openvdb::v7_0::math::closestPointOnSegmentToPoint
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, return the point on ab closest ...
OPENVDB_VERSION_NAME
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:102
openvdb
Definition: Exceptions.h:13