mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
refactor
This commit is contained in:
@@ -6,8 +6,9 @@ use <experimental/sf_solidify.scad>;
|
|||||||
thickness: square thickness
|
thickness: square thickness
|
||||||
invert: inverts how the gray levels are translated into height values.
|
invert: inverts how the gray levels are translated into height values.
|
||||||
*/
|
*/
|
||||||
module sf_square(levels, thickness, invert = false) {
|
module sf_square(levels, thickness, depth, invert = false) {
|
||||||
surface = _sf_square_surfaces(levels, thickness, invert);
|
dp = is_undef(depth) ? thickness - .1 : depth;
|
||||||
|
surface = _sf_square_surfaces(levels, thickness, dp, invert);
|
||||||
offset_z = invert ? thickness : 0;
|
offset_z = invert ? thickness : 0;
|
||||||
|
|
||||||
sf_solidify(
|
sf_solidify(
|
||||||
|
Reference in New Issue
Block a user