From 3ca9c257f2414178066015837c5f17f381c2ecba Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Tue, 22 Jun 2021 14:02:46 +0200 Subject: [PATCH] some formatting fix --- .../contour_scanner_and_trimmer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.py b/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.py index 38b5f267..3ea115a5 100644 --- a/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.py +++ b/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.py @@ -327,9 +327,9 @@ class ContourScannerAndTrimmer(inkex.EffectExtension): # calculate slope from S0P0 to S1P1 and S0P1 to S1P0 # if slopes all match the working set's slope, we're collinear # if not, these segments are parallel but not collinear and should be left alone - p0 = working_set[i]['p0'] expected_slope = working_set[i]['slope'] - if (abs(self.slope(working_set[i]['p1'], working_set[j]['p0']) - expected_slope) > EPS_M) or (abs(self.slope(working_set[i]['p0'], working_set[j]['p1']) - expected_slope) > EPS_M): + if (abs(self.slope(working_set[i]['p1'], working_set[j]['p0']) - expected_slope) > EPS_M) \ + or (abs(self.slope(working_set[i]['p0'], working_set[j]['p1']) - expected_slope) > EPS_M): continue # the only remaining permissible configuration: collinear segments with a gap between them