| 20 | MR_ADD_CLASS_FACTORY( ObjectMesh ) |
| 21 | |
| 22 | MeshIntersectionResult ObjectMesh::worldRayIntersection( const Line3f& worldRay, const FaceBitSet* region ) const |
| 23 | { |
| 24 | MeshIntersectionResult res; |
| 25 | if ( !data_.mesh ) |
| 26 | return res; |
| 27 | const AffineXf3f rayToMeshXf = worldXf().inverse(); |
| 28 | res = rayMeshIntersect( { *data_.mesh, region }, transformed( worldRay, rayToMeshXf ) ); |
| 29 | return res; |
| 30 | } |
| 31 | |
| 32 | void ObjectMesh::setMesh( std::shared_ptr< Mesh > mesh ) |
| 33 | { |
nothing calls this directly
no test coverage detected