[curves.euler] clean up nearly-duplicate points
This commit is contained in:
parent
84106dc355
commit
47f150f579
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue