| 5 | { |
| 6 | |
| 7 | MeshToDistanceMapParams::MeshToDistanceMapParams( const Vector3f& direction, const Vector2i& res, const MeshPart& mp, bool usePreciseBoundingBox ) |
| 8 | { |
| 9 | auto pair = direction.perpendicular(); |
| 10 | Matrix3f rot{ pair.first,pair.second,direction }; |
| 11 | auto orgSize = orgSizeFromMeshPart_( rot, mp, usePreciseBoundingBox ); |
| 12 | initFromSize_( { rot,orgSize.first }, res, orgSize.second ); |
| 13 | } |
| 14 | |
| 15 | MeshToDistanceMapParams::MeshToDistanceMapParams( const Vector3f& direction, const Vector2f& pixelSize, const MeshPart& mp, bool usePreciseBoundingBox ) |
| 16 | { |