mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 11:44:50 +02:00
add error message
This commit is contained in:
@@ -47,10 +47,11 @@ function _bijection_offset_impl(pts, d, epsilon) =
|
|||||||
let(
|
let(
|
||||||
this_edge = offset_es[i],
|
this_edge = offset_es[i],
|
||||||
next_edge = offset_es[i + 1],
|
next_edge = offset_es[i + 1],
|
||||||
p = __line_intersection2(this_edge, next_edge, epsilon)
|
p = __line_intersection2(this_edge, next_edge, epsilon),
|
||||||
|
// p == p to avoid [nan, nan], because [nan, nan] != [nan, nan],
|
||||||
|
_ = assert(p != [] && p == p, "bijection_offset failed. Parallel or conincident edges found")
|
||||||
)
|
)
|
||||||
// p == p to avoid [nan, nan], because [nan, nan] != [nan, nan]
|
p
|
||||||
if(p != [] && p == p) p
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Reference in New Issue
Block a user