1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00

refactored

This commit is contained in:
Justin Lin
2017-05-30 15:19:13 +08:00
parent 80007d45a2
commit 0a7bd612ea

View File

@@ -47,7 +47,9 @@ module rounded_cube(size, corner_r, center = false) {
sphere(corner_r, $fn = corner_frags);
}
translate(center ? [0, 0, 0] : [half_x, half_y, half_z]) hull() {
center_pts = center ? [0, 0, 0] : [half_x, half_y, half_z];
translate(center_pts) hull() {
corner(0);
corner(1);
corner(2);
@@ -57,4 +59,5 @@ module rounded_cube(size, corner_r, center = false) {
corner(6);
corner(7);
}
}