From 124fa40165712f6a404a135a74db9e5de1d09c0b Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 26 May 2017 10:13:39 +0800 Subject: [PATCH] added hooks --- src/line2d.scad | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/line2d.scad b/src/line2d.scad index 3f712b30..cf770bae 100644 --- a/src/line2d.scad +++ b/src/line2d.scad @@ -24,13 +24,19 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") { module square_end(point) { translate(point) rotate(atan_angle) - square(width, center = true); + square(width, center = true); + + // hook for testing + cap(point, "CAP_SQUARE"); } module round_end(point) { translate(point) rotate(atan_angle) circle(half_width, center = true, $fn = frags); + + // hook for testing + cap(point, "CAP_ROUND"); } if(p1Style == "CAP_SQUARE") { @@ -54,6 +60,11 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") { test_line2d_line(atan_angle, leng, width, frags); } +module cap(point, style) { + +} + module test_line2d_line(angle, length, width, frags) { echo(angle, length, width, frags); } +