1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 02:04:16 +02:00
This commit is contained in:
Justin Lin
2019-09-21 08:24:01 +08:00
parent 03bca85e34
commit 6b906292aa

View File

@@ -47,11 +47,12 @@ function bijection_offset(pts, d, epsilon = 0.0001) =
es = __lines_from(pts, true),
offset_es = _bijection__bijection_offset_edges(es, d),
leng = len(offset_es),
last_p = __line_intersection(offset_es[leng - 1], offset_es[0], epsilon)
leng_minus_one = leng - 1,
last_p = __line_intersection(offset_es[leng_minus_one], offset_es[0], epsilon)
)
concat(
[
for(i = 0; i < leng - 1; i = i + 1)
for(i = 0; i < leng_minus_one; i = i + 1)
let(
this_edge = offset_es[i],
next_edge = offset_es[i + 1],