mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
refactor
This commit is contained in:
@@ -31,10 +31,11 @@ module rounded_cube(size, corner_r, center = false) {
|
|||||||
half_cube_leng = size / 2;
|
half_cube_leng = size / 2;
|
||||||
half_leng = half_cube_leng - edge_d;
|
half_leng = half_cube_leng - edge_d;
|
||||||
|
|
||||||
|
pair = [1, -1];
|
||||||
corners = [
|
corners = [
|
||||||
for(z = [1, -1])
|
for(z = pair)
|
||||||
for(y = [1, -1])
|
for(y = pair)
|
||||||
for(x = [1, -1])
|
for(x = pair)
|
||||||
[half_l * x, half_w * y, half_h * z]
|
[half_l * x, half_w * y, half_h * z]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user