1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-24 23:25:51 +02:00

default to half of thickness

This commit is contained in:
Justin Lin
2020-02-20 10:18:10 +08:00
parent 1d68bad5d7
commit 74e087e4dd
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ use <experimental/tf_sphere.scad>;
invert: inverts how the gray levels are translated into height values.
*/
module sf_sphere(levels, radius, thickness, depth, angle = [180, 360], invert = false) {
dp = is_undef(depth) ? thickness - .1 : depth;
dp = is_undef(depth) ? thickness / 2 : depth;
surface = _sf_square_surfaces(levels, thickness, dp, invert);
rows = len(levels);
columns = len(levels[0]);

View File

@@ -8,7 +8,7 @@ use <experimental/sf_solidify.scad>;
invert: inverts how the gray levels are translated into height values.
*/
module sf_square(levels, thickness, depth, invert = false) {
dp = is_undef(depth) ? thickness - .1 : depth;
dp = is_undef(depth) ? thickness / 2 : depth;
surface = _sf_square_surfaces(levels, thickness, dp, invert);
offset_z = invert ? thickness : 0;