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