From 91a3b3d396a31413ff4ac1c0af7243aae6e416e2 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Fri, 5 Aug 2016 11:44:36 +0200 Subject: [PATCH] fixed polygon filleting glitch for colinear outline segments --- polygon/PolyLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygon/PolyLine.cpp b/polygon/PolyLine.cpp index 61267c8aa5..304fba5bf2 100644 --- a/polygon/PolyLine.cpp +++ b/polygon/PolyLine.cpp @@ -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