3d-viewer: Fix intersection bug
Bounding box check always returned false, leading to incorrect BBox checks when one bbox is interior to the other
This commit is contained in:
parent
dff92f915c
commit
ddea4e11d1
|
@ -76,7 +76,7 @@ bool CROUNDSEGMENT2D::Intersects( const CBBOX2D &aBBox ) const
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( (aBBox.Max().x > m_bbox.Max().x) &&
|
if( (aBBox.Max().x > m_bbox.Max().x) &&
|
||||||
(aBBox.Max().y > m_bbox.Max().x) &&
|
(aBBox.Max().y > m_bbox.Max().y) &&
|
||||||
(aBBox.Min().x < m_bbox.Min().x) &&
|
(aBBox.Min().x < m_bbox.Min().x) &&
|
||||||
(aBBox.Min().y < m_bbox.Min().y)
|
(aBBox.Min().y < m_bbox.Min().y)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue