1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 02:59:42 +01:00

fix point order

This commit is contained in:
Justin Lin 2019-10-03 08:16:33 +08:00
parent 69cbd7e88a
commit 9556f60050

View File

@ -51,6 +51,7 @@ function bijection_offset(pts, d, epsilon = 0.0001) =
last_p = __line_intersection(offset_es[leng_minus_one], offset_es[0], epsilon)
)
concat(
last_p != [] && last_p == last_p ? [last_p] : [],
[
for(i = 0; i < leng_minus_one; i = i + 1)
let(
@ -60,7 +61,6 @@ function bijection_offset(pts, d, epsilon = 0.0001) =
)
// p == p to avoid [nan, nan], because [nan, nan] != [nan, nan]
if(p != [] && p == p) p
],
last_p != [] && last_p == last_p ? [last_p] : []
]
);