From 631d0c850672a28a2375ccf6335c003d4184550b Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 21 Jun 2019 06:38:01 +0800 Subject: [PATCH] change default value --- src/pixel/px_circle.scad | 2 +- src/pixel/px_cylinder.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixel/px_circle.scad b/src/pixel/px_circle.scad index 9c4c53bb..99ae7cb4 100644 --- a/src/pixel/px_circle.scad +++ b/src/pixel/px_circle.scad @@ -39,7 +39,7 @@ function _px_circle_sub(center, f, ddf_x, ddf_y, x, y, filled) = function _px_circle(center, f, ddf_x, ddf_y, x, y, filled) = x >= y ? [] : _px_circle_sub(center, f, ddf_x, ddf_y, x, y, filled); -function px_circle(radius, center = [0, 0], filled = false) = +function px_circle(radius, center = [0, 0], filled = true) = let( x0 = center[0], y0 = center[1], diff --git a/src/pixel/px_cylinder.scad b/src/pixel/px_cylinder.scad index 4a276b51..4438d9b5 100644 --- a/src/pixel/px_cylinder.scad +++ b/src/pixel/px_cylinder.scad @@ -23,7 +23,7 @@ function _px_cylinder_same_r(r, h, center, filled) = ] ]; -function px_cylinder(r, h, center, filled = false) = +function px_cylinder(r, h, center, filled = true) = is_num(r) ? _px_cylinder_same_r(r, h, center, filled) : _px_cylinder_diff_r(r, h, center, filled); \ No newline at end of file