Skip to content

Commit

Permalink
Make degenerated beziers compatible with shapely
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Jul 18, 2024
1 parent 7ce61d3 commit 28409eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kikit/substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28409eb

Please sign in to comment.