Forward and reverse test for point in poly collisions
This commit is contained in:
parent
05cdd44404
commit
4e6cd0d293
|
@ -302,6 +302,11 @@ static inline bool Collide( const SHAPE_LINE_CHAIN_BASE& aA, const SHAPE_LINE_CH
|
|||
closest_dist = 0;
|
||||
nearest = aA.GetPoint( 0 );
|
||||
}
|
||||
else if( aA.IsClosed() && aB.GetPointCount() > 0 && aA.PointInside( aB.GetPoint( 0 ) ) )
|
||||
{
|
||||
closest_dist = 0;
|
||||
nearest = aB.GetPoint( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<SEG> a_segs;
|
||||
|
|
Loading…
Reference in New Issue