From 9556cd5d37850f85f52005102a4c4223cbf793dc Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 23 Mar 2017 09:51:13 +0800 Subject: [PATCH] provided supports for $fa, $fs, $fn --- src/line2d.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/line2d.scad b/src/line2d.scad index a2f1c7d5..a20398a3 100644 --- a/src/line2d.scad +++ b/src/line2d.scad @@ -1,7 +1,8 @@ /** * line2d.scad * -* Creates a line from two points. +* Creates a line from two points. When the end points are CAP_ROUND, +* you can use $fa, $fs or $fn to controll the circle module used internally. * * @copyright Justin Lin, 2017 * @license https://opensource.org/licenses/lgpl-3.0.html @@ -10,8 +11,7 @@ * **/ -module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE", round_fn = 24) { - $fn = round_fn; +module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") { half_width = 0.5 * width; atan_angle = atan2(p2[1] - p1[1], p2[0] - p1[0]);