1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-09 22:31:01 +02:00

use polyline_join

This commit is contained in:
Justin Lin
2021-10-08 09:36:01 +08:00
parent e9440e55d6
commit a14c5676d4
36 changed files with 158 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
use <hull_polyline3d.scad>;
use <polyline_join.scad>;
use <maze/mz_square_cells.scad>;
use <maze/mz_square_walls.scad>;
use <path_extrude.scad>;
@@ -42,25 +42,22 @@ module torus_knot_maze() {
);
half_row = rows / 2;
r = wall_thickness / 2;
for(wall = walls) {
hull_polyline3d([
for(p = wall)
let(
x = p[0],
y = p[1]
)
path[x] + ptf_rotate(
ptf_rotate(
[-y + half_row, 0, 0],
[0, 0, -90]
),
[0, angle_yz[x][0], angle_yz[x][1]]
)
],
wall_thickness,
$fn = 4
);
polyline_join([
for(p = wall)
let(
x = p[0],
y = p[1]
)
path[x] + ptf_rotate(
ptf_rotate(
[-y + half_row, 0, 0],
[0, 0, -90]
),
[0, angle_yz[x][0], angle_yz[x][1]]
)
]) sphere(r, $fn = 4);
}
if(filled) {