From 28409eb527ad9efed1f3854ffcd973b3eadbfd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Thu, 18 Jul 2024 12:53:25 +0200 Subject: [PATCH] Make degenerated beziers compatible with shapely --- kikit/substrate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kikit/substrate.py b/kikit/substrate.py index 6fe3ac55..f5fa3aba 100644 --- a/kikit/substrate.py +++ b/kikit/substrate.py @@ -210,6 +210,8 @@ def approximateBezier(bezier, endWith): 3 * t ** 2 * (1 - t) * bc2 + \ t ** 3 * end outline.append(vertex) + else: + outline += [start, end] outline.append(end) endWith = np.array(endWith)