| 573 | } |
| 574 | |
| 575 | CoordinateConverters getVectorConverters( const MeshPart& a, const MeshPart& b, const AffineXf3f* rigidB2A ) |
| 576 | { |
| 577 | MR_TIMER; |
| 578 | Box3d bb( a.mesh.computeBoundingBox( a.region ) ); |
| 579 | bb.include( Box3d( b.mesh.computeBoundingBox( b.region, rigidB2A ) ) ); |
| 580 | CoordinateConverters res; |
| 581 | res.toInt = getToIntConverter( bb ); |
| 582 | res.toFloat = getToFloatConverter( bb ); |
| 583 | return res; |
| 584 | } |
| 585 | |
| 586 | CoordinateConverters getVectorConverters( const MeshPart& a ) |
| 587 | { |