1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 22:05:27 +02:00

fix offset

This commit is contained in:
Justin Lin
2020-02-09 17:54:32 +08:00
parent 2b121d386b
commit 4d7acb3734

View File

@@ -19,14 +19,14 @@ module sphere_maze() {
rows, columns, y_circular = true rows, columns, y_circular = true
); );
p_offset = [wall_thickness * columns, pole_offset, 0]; p_offset = [block_width * rows, pole_offset, 0];
mr = m_rotation(90); mr = m_rotation(90);
walls = maze_walls(blocks, rows, columns, block_width, bottom_border = false); walls = maze_walls(blocks, rows, columns, block_width, bottom_border = false);
for(wall_pts = walls) { for(wall_pts = walls) {
rxpts = [ rxpts = [
for(p = wall_pts) for(p = wall_pts)
pt_to_sphere(mr * [p[0], p[1], 0, 0] + p_offset, size, r) pt_to_sphere(size, mr * [p[0], p[1], 0, 0] + p_offset, r)
]; ];
hull_polyline3d(rxpts, wall_thickness, $fn = 6); hull_polyline3d(rxpts, wall_thickness, $fn = 6);
} }