PointinCurve not catching all points in the region?

I tried testing for a number of points inside a curve and noticed some of them were not being caught.
So I’ve duplicated the points and curves around in a rectangular array and it seems like the issue only occurs in certain locations. Is this an issue with PointinCurve or something else?

In the screenshot, I made all the succeeded points orange and the points that PointinCurve missed show up as the little red Xs to make this issue more visible.

The original curve and set of points I was testing lands somewhere in the middle of this rectangular array.

InCurvesTest.gh (13.4 KB)

Is the component you’re using ‘Point in Curve’ or ‘Point in Curve(s)’ ?

You didn’t internalise the geometry in your grasshopper file.

(right-click and select Internalise)

-Kevin

@kev.r sorry bout that, reuploaded

Points in one singular curve

1 Like

Seems to be a bug in Rhino V7 that has been fixed in V8.

Here’s what your file looks like with V8 on Windows:

Here’s your file with V7 on Windows. Looks the same with V7 on macOS (I don’t have a mac new enough to run V8):

-Kevin

:thinking:
I open the file in Rhino 7 and I see this:


Which differs from what Kevin shows on V7, but still ‘incorrect’.

Rhino 8 shows this:


Same as Kevin’s V8 screenshot.

Changing Rhino tolerance + recomputing GH solution also yields different results.

*If you must stay in V7, a workaround for something like this ('dealt with it before) is ‘forcing’ the inclusion testing via PointInBrep:
InCurvesTest.gh (17.9 KB)


'Definitely bug alert :rotating_light: