1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 08:16:50 +02:00
This commit is contained in:
Justin Lin
2019-09-19 15:39:38 +08:00
parent 7634a0dd72
commit afa3dbcd62

View File

@@ -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]
];