fixed polygon filleting glitch for colinear outline segments

This commit is contained in:
Tomasz Wlostowski 2016-08-05 11:44:36 +02:00 committed by Maciej Suminski
parent 8fdd6b1627
commit 91a3b3d396
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ CPolyLine* CPolyLine::Fillet( unsigned int aRadius, unsigned int aSegments )
double denom = sqrt( 2.0 / ( 1 + cosine ) - 1 ); double denom = sqrt( 2.0 / ( 1 + cosine ) - 1 );
// Do nothing in case of parallel edges // Do nothing in case of parallel edges
if( std::isinf( denom ) ) if( !std::isfinite( denom ) )
continue; continue;
// Limit rounding distance to one half of an edge // Limit rounding distance to one half of an edge