diff --git a/src/line2d.scad b/src/line2d.scad index a20398a3..a71f3c9b 100644 --- a/src/line2d.scad +++ b/src/line2d.scad @@ -1,8 +1,7 @@ /** * line2d.scad * -* 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. +* Creates a line from two points. * * @copyright Justin Lin, 2017 * @license https://opensource.org/licenses/lgpl-3.0.html diff --git a/src/polyline2d.scad b/src/polyline2d.scad index 374fa7bf..317cc494 100644 --- a/src/polyline2d.scad +++ b/src/polyline2d.scad @@ -1,7 +1,9 @@ /** * polyline2d.scad * -* Creates a polyline from a list of x, y coordinates. It depends on the line2d module so you have to include line2d.scad. +* Creates a polyline from a list of x, y coordinates. When the end points are CAP_ROUND, +* you can use $fa, $fs or $fn to controll the circle module used internally. +* It depends on the line2d module so you have to include line2d.scad. * * @copyright Justin Lin, 2017 * @license https://opensource.org/licenses/lgpl-3.0.html @@ -10,7 +12,7 @@ * **/ -module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CAP_SQUARE", round_fn = 24) { +module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CAP_SQUARE") { module line_segment(index) { styles = index == 1 ? [startingStyle, "CAP_ROUND"] : ( index == len(points) - 1 ? ["CAP_ROUND", endingStyle] : [ @@ -19,8 +21,7 @@ module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CA ); line2d(points[index - 1], points[index], width, - p1Style = styles[0], p2Style = styles[1], - round_fn = round_fn); + p1Style = styles[0], p2Style = styles[1]); } module polyline2d_inner(points, index) {