From 7269206f739e9a713ed62523acab2b921732f648 Mon Sep 17 00:00:00 2001 From: Daid Date: Sun, 22 Apr 2012 00:46:34 +0200 Subject: [PATCH] Fix skeinforge bug reported by Joergen Geerds. --- Cura/cura_sf/fabmetheus_utilities/euclidean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/cura_sf/fabmetheus_utilities/euclidean.py b/Cura/cura_sf/fabmetheus_utilities/euclidean.py index 24708e02..f9c31483 100644 --- a/Cura/cura_sf/fabmetheus_utilities/euclidean.py +++ b/Cura/cura_sf/fabmetheus_utilities/euclidean.py @@ -882,7 +882,7 @@ def getHalfSimplifiedLoop( loop, radius, remainder ): 'Get the loop with half of the points inside the channel removed.' if len(loop) < 2: return loop - channelRadius = radius * .01 + channelRadius = abs(radius * .01) simplified = [] addIndex = 0 if remainder == 1: @@ -899,7 +899,7 @@ def getHalfSimplifiedPath(path, radius, remainder): 'Get the path with half of the points inside the channel removed.' if len(path) < 2: return path - channelRadius = radius * .01 + channelRadius = abs(radius * .01) simplified = [path[0]] for pointIndex in xrange(1, len(path) - 1): point = path[pointIndex] -- 2.30.2