From 51661728c8ee16aef8566ec4d653b32c8d393e19 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 26 May 2017 19:56:31 +0800 Subject: [PATCH] added test hook --- src/hull_polyline2d.scad | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/hull_polyline2d.scad b/src/hull_polyline2d.scad index 166e3c32..91da6878 100644 --- a/src/hull_polyline2d.scad +++ b/src/hull_polyline2d.scad @@ -17,12 +17,18 @@ module hull_polyline2d(points, width) { leng = len(points); module hull_line2d(index) { + point1 = points[index - 1]; + point2 = points[index]; + hull() { translate(points[index - 1]) circle(half_width); translate(points[index]) circle(half_width); } + + // hook for testing + test_line_segment(index, point1, point2, half_width); } module polyline2d_inner(index) { @@ -33,4 +39,9 @@ module hull_polyline2d(points, width) { } polyline2d_inner(1); +} + +// override to test +module test_line_segment(index, point1, point2, radius) { + } \ No newline at end of file