Skip to content

Commit ef0ad8a

Browse files
committed
use TracingError instead of printing out errors
1 parent b174cc6 commit ef0ad8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/methods/clipping/clipping_processor.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,9 @@ function _trace_polynodes(alg::FosterHormannClipping{M, A}, ::Type{T}, a_list, b
661661
# changed curr_not_intr to curr_not_same_ent_flag
662662
same_status, prev_status = true, curr.ent_exit
663663
while same_status
664-
@assert visited_pts < total_pts "Clipping tracing hit every point - clipping error. Please open an issue with polygons: $(GI.coordinates(poly_a)) and $(GI.coordinates(poly_b))."
664+
if visited_pts >= total_pts
665+
throw(TracingError("Clipping tracing hit every point - clipping error.", poly_a, poly_b, a_list, b_list, a_idx_list))
666+
end
665667
# Traverse polygon either forwards or backwards
666668
idx += step
667669
idx = (idx > curr_npoints) ? mod(idx, curr_npoints) : idx

0 commit comments

Comments
 (0)