mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-25 15:42:41 +02:00
default to half of thickness
This commit is contained in:
@@ -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]);
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user