Curve Intersection sometimes doesn't work

Hi all,

does someone else also have difficulty with the Curve Intersection component? In some cases, it simply does not give the results.

I tried to lower model tolerances, but nothing changes

Curve Intersection.gh (5.3 KB)

Thanks!

Graft one of the inputs.

1 Like

the one you show is a data tree problem

you are trying to find intersection between curve 0 and line 0, which obviously do not intersect :upside_down_face: same for curve 1 and line 1, curve 2 and line 2… and so on

you can either graft CCX input A or B, depending on how you want output data to be organized

grafting CCX input A will give you a tree like:
{curve index; line index} (intersection points)

grafting CCX input B will give you a tree like:
{line index; curve index} (intersection points)

2 Likes

As @inno pointed out - intersections work properly (no need to graft) if intersecting curves share the same index.

Sorry guys,

somehow I made the wrong selection when creating the example file. Here is a new file where data trees are matching. Please take a look at the curves on the left side

Curve Intersection B.gh (29.2 KB)

Or you could sort the curves. Wait, moving the goal posts? :frowning:


Curve Intersection_2024Jul29a.gh (8.9 KB)

I found the issue, they were not projected correctly :face_exhaling:

1 Like

:zzz:

Thank you inno,

I had to also check is all curves are planar

1 Like

So did I. :roll_eyes: :-1:

2 Likes