mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 05:21:38 +02:00
refactor
This commit is contained in:
@@ -65,8 +65,9 @@ module sf_thicken(points, thickness, direction = "BOTH") {
|
|||||||
vertex_normal(points, x, y)
|
vertex_normal(points, x, y)
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
half_thickness = thickness / 2;
|
|
||||||
if(direction == "BOTH") {
|
if(direction == "BOTH") {
|
||||||
|
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);
|
sf_solidify(surface_top, surface_bottom);
|
||||||
|
Reference in New Issue
Block a user