fixed polygon filleting glitch for colinear outline segments
This commit is contained in:
parent
8fdd6b1627
commit
91a3b3d396
|
@ -423,7 +423,7 @@ CPolyLine* CPolyLine::Fillet( unsigned int aRadius, unsigned int aSegments )
|
|||
double denom = sqrt( 2.0 / ( 1 + cosine ) - 1 );
|
||||
|
||||
// Do nothing in case of parallel edges
|
||||
if( std::isinf( denom ) )
|
||||
if( !std::isfinite( denom ) )
|
||||
continue;
|
||||
|
||||
// Limit rounding distance to one half of an edge
|
||||
|
|
Loading…
Reference in New Issue