| 504 | } |
| 505 | |
| 506 | bool Mesh::projectPoint( const Vector3f& point, PointOnFace& res, float maxDistSq, const FaceBitSet * region, const AffineXf3f * xf ) const |
| 507 | { |
| 508 | auto proj = findProjection( point, { *this, region }, maxDistSq, xf ); |
| 509 | if ( !( proj.distSq < maxDistSq ) ) |
| 510 | return false; |
| 511 | |
| 512 | res = proj.proj; |
| 513 | return true; |
| 514 | } |
| 515 | |
| 516 | bool Mesh::projectPoint( const Vector3f& point, MeshProjectionResult& res, float maxDistSq, const FaceBitSet* region, const AffineXf3f * xf ) const |
| 517 | { |