mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-30 09:49:59 +02:00
add swap_surface param
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use <sf_solidify.scad>;
|
||||
use <util/sum.scad>;
|
||||
|
||||
module sf_thicken(points, thickness, direction = undef, slicing = "SLASH") {
|
||||
module sf_thicken(points, thickness, direction = undef, swap_surface = false, slicing = "SLASH") {
|
||||
function tri_normal(tri) =
|
||||
let(v = cross(tri[2] - tri[0], tri[1] - tri[0])) v / norm(v);
|
||||
|
||||
@@ -48,8 +48,13 @@ module sf_thicken(points, thickness, direction = undef, slicing = "SLASH") {
|
||||
dir_v
|
||||
]
|
||||
];
|
||||
if(swap_surface) {
|
||||
sf_solidify(surface_bottom, points, slicing);
|
||||
}
|
||||
else {
|
||||
sf_solidify(points, surface_bottom, slicing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user