diff --git a/examples/maze/circle_maze.scad b/examples/maze/circle_maze.scad index 5270e86d..f3f71e30 100644 --- a/examples/maze/circle_maze.scad +++ b/examples/maze/circle_maze.scad @@ -14,7 +14,7 @@ module circle_maze(start, r_blocks, block_width, wall_thickness, origin_offset) walls = mz_walls(blocks, double_r_blocks, double_r_blocks, block_width); half_width = width / 2; - offset = is_undef(origin_offset) ? [half_width, half_width] : origin_offset; + offset = is_undef(origin_offset) ? [-half_width, -half_width] : origin_offset; for(wall = walls) { for(i = [0:len(wall) - 2]) { diff --git a/src/experimental/ptf_circle.scad b/src/experimental/ptf_circle.scad index 5a0e5a4a..a5469cfb 100644 --- a/src/experimental/ptf_circle.scad +++ b/src/experimental/ptf_circle.scad @@ -1,6 +1,6 @@ function ptf_circle(point, offset) = let( - p = [point[0] - offset[1], point[1] - offset[0]], + p = [point[0] + offset[1], point[1] + offset[0]], n = max(abs(p[0]), abs(p[1])), r = n * 1.414, a = atan2(p[0], p[1])