mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 08:16:50 +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_leng = half_cube_leng - edge_d;
|
||||
|
||||
pair = [1, -1];
|
||||
corners = [
|
||||
for(z = [1, -1])
|
||||
for(y = [1, -1])
|
||||
for(x = [1, -1])
|
||||
for(z = pair)
|
||||
for(y = pair)
|
||||
for(x = pair)
|
||||
[half_l * x, half_w * y, half_h * z]
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user