Mesh | Ray Presumably breaking

Hi,

I am experiencing a very strange behavior in grasshopper when I use Mesh Ray. I have a definition that works as expected culling the areas that I require see image below:

The original surface is on 0. When the original surface is moved for example 12 ft on Z direction my definition totally breaks:

I was expecting to have the same results as shown in the first image above. I am wondering if anyone else experiences the same issue. I won’t discard as well user error and maybe I am doing something wrong in my definition that is triggering this behavior.

Please if anyone can point me in the right direction I will really appreciate it.

Thanks

Mesh Ray Issues.gh (11.7 KB)

Maybe because your target mesh is on the same level of your starting points? I’m not sure…
And you could also use Point In Curve.


Mesh Ray Issues_re.gh (14.5 KB)

3 Likes

Sorry for the late response. I figure out the reason why I was having this strange behavior. The base curve was a periodic planar curve.

I divided the curve and used polyline to approximate it and now it works properly. See attached GH file for reference.

Mesh Ray Issues.gh (20.4 KB)