Points in curves problem

Hi,
I am trying to use points in curves in order to isolate points that “belong” to the different polygons.
The thing is the component treats all the curves equally and points from one boundary appear on the other elements… see the file and image…
Does anyone know how to solve that issue? There is that index output that I couldn’t figure out how to use, but the solution might be around that
points in curves.gh (7.6 KB)
?

Thanks

Ahh! no internalized geometry!? :slightly_frowning_face:

points in curves.gh (11.9 KB)

Right ! here it is

I tried also to work with Point in Breps, but the same thing - there is a list of correspondent breps to each point, but I don’t get how to use it and make each point to appear only in the curve in which it was created… (And maintain the data structure from the divide length component…

You need to graft your curves AND use PShift (Shift Paths) on your Divide Length points to match data trees. I see no reason for cull? Cull Duplicates is also unnecessary. And I see no reason to use Bounding Box?

1 Like

You beat me to it again @Joseph_Oster


1 Like

Hi Joseph,
Thanks for the reply,
I want to be able to cut out each Nth element in the future, and the BBox makes it so the points that cull will be in the same line (if I just use the contour on each element the counting will make funny patterns when culling Nth.

Hi Ryan,
Thanks for answering
What is the Trim comp you used?


I am pretty sure the answer is within the data tree, (3rd index level), I am just not sure how to use that info to separate it… And assume that now there are only 3 elements, but it can be also 10 in the future, so Sift list is not an option…

I see. OK, then this:

points in curves_2023Sep29a.gh (21.0 KB)

Point In Breps is not working correctly because the extrusions got out of order… The culprit is Boundary Surfaces. :frowning: If you replace it with a Srf param it works as expected. Otherwise, more elaborate means are required to make sure Boundary Surfaces doesn’t mess up the sequence. Oh wait, you can graft the input of Boundary Surfaces to get the same effect.


points in curves_2023Sep29b.gh (23.1 KB)

2 Likes

1 Like

Wow! Works like a charm. I learned something today (:
Thanks!


points in curves_2023Sep30a.gh (30.6 KB)

2 Likes