1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-30 09:49:59 +02:00
This commit is contained in:
Justin Lin
2022-04-06 17:02:32 +08:00
parent 0b23e5666a
commit adf07c5da8
8 changed files with 25 additions and 36 deletions

View File

@@ -11,11 +11,10 @@ module tiled_line_torus(size, twist, line_diameter = 1) {
lines = [
for(tile = tile_truchet(size))
let(
x = tile[0],
y = tile[1],
i = tile[2]
x = tile.x,
y = tile.y
)
i <= 1 ? [[x, y], [x + 1, y + 1]] : [[x + 1, y], [x, y + 1]]
tile[2] <= 1 ? [[x, y], [x + 1, y + 1]] : [[x + 1, y], [x, y + 1]]
];
half_line_diameter = line_diameter / 2;