| 4 | #include <iostream> |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | auto mesh1Res = MR::MeshLoad::fromAnySupportedFormat( "mesh1.ctm" ); |
| 9 | if ( !mesh1Res.has_value() ) |
| 10 | { |
| 11 | std::cerr << mesh1Res.error(); |
| 12 | return 1; |
| 13 | } |
| 14 | auto point = MR::Vector3f( 1.5f, 1.0f, 0.5f ); |
| 15 | |
| 16 | auto dist = MR::findSignedDistance( point, *mesh1Res ); |
| 17 | if ( dist ) |
| 18 | std::cout << "Signed distance from point to mesh " << dist->dist << "\n"; |
| 19 | return 0; |
| 20 | } |
nothing calls this directly
no test coverage detected