| 296 | } |
| 297 | |
| 298 | PolylineProjectionResult3 findProjectionOnMeshEdges( const Vector3f& pt, const Mesh& mesh, const AABBTreePolyline3& tree, float upDistLimitSq, AffineXf3f* xf, float loDistLimitSq ) |
| 299 | { |
| 300 | return findProjectionCore( tree, upDistLimitSq, xf, [&]( UndirectedEdgeId ue, Vector3f & a, Vector3f & b ) |
| 301 | { |
| 302 | a = mesh.orgPnt( ue ); |
| 303 | b = mesh.destPnt( ue ); |
| 304 | }, loDistLimitSq, |
| 305 | [pt]( const Box3f & box ) { return box.getDistanceSq( pt ); }, |
| 306 | [pt]( const LineSegm3f & ls ) { return LineSegm3f{ pt, closestPointOnLineSegm( pt, ls ) }; } ); |
| 307 | } |
| 308 | |
| 309 | PolylineProjectionResult3 findProjectionOnMeshEdges( const Line3f& ln, const Mesh& mesh, const AABBTreePolyline3& tree, float upDistLimitSq, AffineXf3f* xf, float loDistLimitSq ) |
| 310 | { |
nothing calls this directly
no test coverage detected