Registry / other / trianglemeshdistance

trianglemeshdistance

JSON →
library1.1.0vcpkgunverified

Header only library to compute the signed distance function (SDF) to a triangle mesh.

vcpkg install trianglemeshdistance
INSTALL
IMPORT
SIG · TRIANGLEMESHDISTAN
T
trianglemeshdistance
othercppv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

trianglemeshdistance/trianglemeshdistance.h
#include <trianglemeshdistance/trianglemeshdistance.h>

Compute signed distance from a point to a triangle

#include <trianglemeshdistance/trianglemeshdistance.h> #include <iostream> int main() { // Example: compute signed distance from point to a triangle double p[3] = {0.0, 0.0, 0.0}; double v0[3] = {1.0, 0.0, 0.0}; double v1[3] = {0.0, 1.0, 0.0}; double v2[3] = {0.0, 0.0, 1.0}; double dist = trianglemeshdistance::signed_distance(p, v0, v1, v2); std::cout << "Signed distance: " << dist << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.