From 32ff45758c4bfdc74ebf16f3811880845bed1376 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 13 Feb 2020 14:11:43 +0800 Subject: [PATCH] refactor --- examples/maze/mobius_maze.scad | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/maze/mobius_maze.scad b/examples/maze/mobius_maze.scad index ace0e8eb..79f0773a 100644 --- a/examples/maze/mobius_maze.scad +++ b/examples/maze/mobius_maze.scad @@ -1,7 +1,7 @@ use ; use ; use ; -use ; +use ; rows = 48; columns = 8; @@ -21,7 +21,8 @@ blocks = go_maze( ); walls = maze_walls(blocks, rows, columns, block_width, bottom_border = false); -for(wall_pts = y_twist(walls, angle, rows, columns, block_width)) { - z_rotated = [for(pt = wall_pts) rotate_p([radius + pt[0], 0, pt[2]], a_step * pt[1])]; +size = [columns * block_width, rows * block_width]; +for(wall_pts = walls) { + z_rotated = [for(pt = wall_pts) tf_ring(size, pt, radius, 360, angle)]; hull_polyline3d(z_rotated, wall_thickness); } \ No newline at end of file