<div dir="ltr">Hi, Robert,<div><br></div><div>I have just stumbled on small issue in my intersection code which turned out to be related to different interpretation of r2 param returned by LineSegment::intersect( BoundingBox, r1, r2 ) and LineSegment::intersect( BoundingSphere, r1, r2 ). </div><div><br></div><div>Example Code:</div><div><div><br></div><div><div><div>osg::BoundingBox box( -1,-1,-1, 1, 1, 1 );</div><div>osg::BoundingSphere sphere( box );                </div><div>osg::ref_ptr< osg::LineSegment > diagonal = new osg::LineSegment( box._min, box._max );</div><div><br></div><div>double box_r1, box_r2;                </div><div>diagonal->intersect( box, box_r1, box_r2 );</div><div><br></div><div>double sphere_r1, sphere_r2;</div><div>diagonal->intersect( sphere, sphere_r1, sphere_r2 );</div><div><br></div><div>printf( "Box r1=%.0f r2=%.0f   Sphere r1=%.0f r2=%.0f \n", box_r1, box_r2, sphere_r1, sphere_r2 );</div></div></div><div><br></div><div>Output:</div></div><div><br></div><div>Box r1=0 r2=0   Sphere r1=0 r2=1<br></div><div><br></div><div>Is that a bug or deliberate design ?</div><div><br></div><div>Cheers,</div><div>Wojtek Lewandowski</div></div>