1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00
This commit is contained in:
Justin Lin
2021-06-26 18:35:32 +08:00
parent 1415848406
commit 507c7ec226

View File

@@ -65,8 +65,9 @@ module sf_thicken(points, thickness, direction = "BOTH") {
vertex_normal(points, x, y)
]
];
half_thickness = thickness / 2;
if(direction == "BOTH") {
half_thickness = thickness / 2;
surface_top = points + half_thickness * vertex_normals;
surface_bottom = points - half_thickness * vertex_normals;
sf_solidify(surface_top, surface_bottom);