From 94410dffc9678a1e500cd7998fd9f740e45ea52a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 15 May 2019 00:18:43 -0700 Subject: [PATCH] Fix clockwise (to-perp) path bends --- masque/shapes/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/shapes/path.py b/masque/shapes/path.py index 3ce8f8c..8edcf21 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -250,12 +250,12 @@ class Path(Shape): if towards_perp[i]: o0.append(intersection_p[i]) if acute[i]: - o1.append(intersection_n[i]) - else: # Opposite is >270 pt0 = v[i + 1] - perp[i + 0] + dvdir[i + 0] * self.width / 2 pt1 = v[i + 1] - perp[i + 1] - dvdir[i + 1] * self.width / 2 o1 += [pt0, pt1] + else: + o1.append(intersection_n[i]) else: o1.append(intersection_n[i]) if acute[i]: