1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-30 01:40:02 +02:00
This commit is contained in:
Justin Lin
2019-09-09 09:30:25 +08:00
parent bfcd168e4b
commit 9fe1994049
3 changed files with 18 additions and 18 deletions

View File

@@ -351,22 +351,5 @@ function maze_walls(blocks, rows, columns, block_width, left_border = true, bott
]
, left_walls, buttom_walls
);
function y_twist(walls, angle, rows, columns, block_width) =
let(
x_offset = columns * block_width / 2,
x_centered = [
for(wall_pts = walls)
[for(pt = wall_pts) [pt[0], pt[1], 0] + [-x_offset, 0, 0]]
],
a_step = angle / (rows * block_width)
)
[
for(wall_pts = x_centered)
[
for(pt = wall_pts)
rotate_p(pt, [0, pt[1] * a_step, 0]) + [x_offset, 0, 0]
]
];
// ==========