1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 17:24:20 +02:00

change default value

This commit is contained in:
Justin Lin
2019-06-29 18:15:12 +08:00
parent a6caaac787
commit b3ae216b72
4 changed files with 4 additions and 4 deletions

View File

@@ -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) _px_circle(nf, nddf_x, nddf_y, nx, ny, filled)
); );
function px_circle(radius, filled = true) = function px_circle(radius, filled = false) =
let( let(
f = 1 - radius, f = 1 - radius,
ddf_x = 1, ddf_x = 1,

View File

@@ -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) ? is_num(r) ?
_px_cylinder_same_r(r, h, filled, thickness) : _px_cylinder_same_r(r, h, filled, thickness) :
_px_cylinder_diff_r(r, h, filled, thickness); _px_cylinder_diff_r(r, h, filled, thickness);

View File

@@ -1,4 +1,4 @@
function px_polygon(points, filled = true) = function px_polygon(points, filled = false) =
filled ? filled ?
let( let(
xs = [for(pt = points) pt[0]], xs = [for(pt = points) pt[0]],

View File

@@ -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]) let(range = [-radius: radius - 1])
filled ? [ filled ? [
for(z = range) for(z = range)