Forward and reverse test for point in poly collisions
(cherry picked from commit 4e6cd0d293
)
This commit is contained in:
parent
fd5d68ca9b
commit
b21165722b
|
@ -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