From 88f4641ffff55e5b2845fd29e33320ce967a3817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Tue, 28 Jun 2022 09:25:53 +0200 Subject: [PATCH] Follow-up to d547279aea40460e7ccfe7c5a4b77a6ef433e9bf: Some of the unit tests use unscaled coordinates, because of that, we will use for them ExtrusionLoop::split_at with zero epsilon. --- xs/xsp/ExtrusionLoop.xsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xs/xsp/ExtrusionLoop.xsp b/xs/xsp/ExtrusionLoop.xsp index 6784fcbbe..ded17cb19 100644 --- a/xs/xsp/ExtrusionLoop.xsp +++ b/xs/xsp/ExtrusionLoop.xsp @@ -21,8 +21,8 @@ double length(); bool split_at_vertex(Point* point) %code{% RETVAL = THIS->split_at_vertex(*point); %}; - void split_at(Point* point, int prefer_non_overhang = 0) - %code{% THIS->split_at(*point, prefer_non_overhang != 0); %}; + void split_at(Point* point, int prefer_non_overhang = 0, double scaled_epsilon = 0.) + %code{% THIS->split_at(*point, prefer_non_overhang != 0, scaled_epsilon); %}; ExtrusionPaths clip_end(double distance) %code{% THIS->clip_end(distance, &RETVAL); %}; bool has_overhang_point(Point* point)