mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 01:34:12 +02:00
format
This commit is contained in:
@@ -70,8 +70,7 @@ module multiplication_puzzle(n, piece_side_length, spacing, same_height = false,
|
||||
n_minus_one = n - 1;
|
||||
|
||||
intersection() {
|
||||
union() for(x = [0 : n_minus_one]) {
|
||||
for(y = [0 : n_minus_one]) {
|
||||
union() for(x = [0 : n_minus_one], y = [0 : n_minus_one]) {
|
||||
pos = [piece_side_length * x, piece_side_length * y];
|
||||
r = (x + 1) * (y + 1);
|
||||
linear_extrude(same_height ? height : r) union() {
|
||||
@@ -100,7 +99,6 @@ module multiplication_puzzle(n, piece_side_length, spacing, same_height = false,
|
||||
translate(pos)
|
||||
puzzle_piece(piece_side_length, spacing);
|
||||
}
|
||||
}
|
||||
|
||||
linear_extrude(same_height ? height : n * n)
|
||||
square(piece_side_length * n - spacing * 1.5);
|
||||
|
Reference in New Issue
Block a user