Fix clockwise (to-perp) path bends

This commit is contained in:
Jan Petykiewicz 2019-05-15 00:18:43 -07:00
parent 2909b25fd7
commit 94410dffc9

View File

@ -250,12 +250,12 @@ class Path(Shape):
if towards_perp[i]: if towards_perp[i]:
o0.append(intersection_p[i]) o0.append(intersection_p[i])
if acute[i]: if acute[i]:
o1.append(intersection_n[i])
else:
# Opposite is >270 # Opposite is >270
pt0 = v[i + 1] - perp[i + 0] + dvdir[i + 0] * self.width / 2 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 pt1 = v[i + 1] - perp[i + 1] - dvdir[i + 1] * self.width / 2
o1 += [pt0, pt1] o1 += [pt0, pt1]
else:
o1.append(intersection_n[i])
else: else:
o1.append(intersection_n[i]) o1.append(intersection_n[i])
if acute[i]: if acute[i]: