mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
add error message
This commit is contained in:
@@ -47,10 +47,11 @@ function _bijection_offset_impl(pts, d, epsilon) =
|
||||
let(
|
||||
this_edge = offset_es[i],
|
||||
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]
|
||||
if(p != [] && p == p) p
|
||||
p
|
||||
]
|
||||
);
|
||||
|
Reference in New Issue
Block a user