All pastes #747235 Raw Edit

Anonymous

public text v1 · immutable
#747235 ·published 2007-10-23 21:02 UTC
rendered paste body
--- rs274/interpret.py	14 Jul 2007 21:43:21 -0000	1.2
+++ rs274/interpret.py	23 Oct 2007 21:01:54 -0000
@@ -55,9 +55,9 @@ class ArcsToSegmentsMixin:
         rad = math.hypot(o[xyz[0]]-cx, o[xyz[1]]-cy)
 
         if rot < 0:
-            if theta2 - theta1 >= -self.FUZZ: theta2 -= math.pi * 2
+            while theta2 - theta1 >= -self.FUZZ: theta2 -= math.pi * 2
         else:
-            if theta2 - theta1 <= self.FUZZ: theta2 += math.pi * 2
+            while theta2 - theta1 <= self.FUZZ: theta2 += math.pi * 2
 
         def interp(low, high):
             return low + (high-low) * i / steps