1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 12:00:23 +02:00

changed hook

This commit is contained in:
Justin Lin
2017-05-30 15:46:42 +08:00
parent cce6dcde4c
commit 08fb6775aa

View File

@@ -36,10 +36,10 @@ module rounded_cube(size, corner_r, center = false) {
half_leng = half_cube_leng - edge_d; half_leng = half_cube_leng - edge_d;
corners = [ corners = [
for(x = [-1, 1]) for(z = [1, -1])
for(y = [-1, 1]) for(y = [1, -1])
for(z = [-1, 1]) for(x = [1, -1])
[half_l * x, -half_w * y, half_h * z] [half_l * x, half_w * y, half_h * z]
]; ];
module corner(i) { module corner(i) {
@@ -61,9 +61,9 @@ module rounded_cube(size, corner_r, center = false) {
} }
// hook for testing // hook for testing
test_rounded_edge_corner_center(edge_d, corners, center_pts); test_rounded_edge_corner_center(corners, center_pts);
} }
module test_rounded_edge_corner_center(edge_dist, corners, center_pts) { module test_rounded_edge_corner_center(corners, center_pts) {
} }