From b3ae216b72ce9d8dcefee0f9efec3c5d5297b9d3 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 29 Jun 2019 18:15:12 +0800 Subject: [PATCH] change default value --- src/pixel/px_circle.scad | 2 +- src/pixel/px_cylinder.scad | 2 +- src/pixel/px_polygon.scad | 2 +- src/pixel/px_sphere.scad | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pixel/px_circle.scad b/src/pixel/px_circle.scad index 00e78872..0b47c423 100644 --- a/src/pixel/px_circle.scad +++ b/src/pixel/px_circle.scad @@ -29,7 +29,7 @@ function _px_circle(f, ddf_x, ddf_y, x, y, filled) = _px_circle(nf, nddf_x, nddf_y, nx, ny, filled) ); -function px_circle(radius, filled = true) = +function px_circle(radius, filled = false) = let( f = 1 - radius, ddf_x = 1, diff --git a/src/pixel/px_cylinder.scad b/src/pixel/px_cylinder.scad index c9c97ea3..43f6cff9 100644 --- a/src/pixel/px_cylinder.scad +++ b/src/pixel/px_cylinder.scad @@ -43,7 +43,7 @@ function _px_cylinder_same_r(r, h, filled, thickness) = ] ]; -function px_cylinder(r, h, filled = true, thickness = 1) = +function px_cylinder(r, h, filled = false, thickness = 1) = is_num(r) ? _px_cylinder_same_r(r, h, filled, thickness) : _px_cylinder_diff_r(r, h, filled, thickness); \ No newline at end of file diff --git a/src/pixel/px_polygon.scad b/src/pixel/px_polygon.scad index 28897bf3..11bc3bc9 100644 --- a/src/pixel/px_polygon.scad +++ b/src/pixel/px_polygon.scad @@ -1,4 +1,4 @@ -function px_polygon(points, filled = true) = +function px_polygon(points, filled = false) = filled ? let( xs = [for(pt = points) pt[0]], diff --git a/src/pixel/px_sphere.scad b/src/pixel/px_sphere.scad index 705e3462..f65abc57 100644 --- a/src/pixel/px_sphere.scad +++ b/src/pixel/px_sphere.scad @@ -1,4 +1,4 @@ -function px_sphere(radius, filled = true, thickness = 1) = +function px_sphere(radius, filled = false, thickness = 1) = let(range = [-radius: radius - 1]) filled ? [ for(z = range)