[curves.euler] clean up nearly-duplicate points

This commit is contained in:
Jan Petykiewicz 2026-04-08 18:07:54 -07:00
commit 47f150f579

View file

@ -117,6 +117,6 @@ def euler_bend(
xy = numpy.concatenate(xy_parts)
# Remove any 2x-duplicate points
xy = xy[(numpy.roll(xy, 1, axis=0) != xy).any(axis=1)]
xy = xy[(numpy.roll(xy, 1, axis=0) - xy > 1e-12).any(axis=1)]
return xy