Finding Distances

I have a collection of points where objects intersects, I want to move the points in the middle of objects to perforate, how can I get the correct distances to move the poits, someone could help me, thanks.
distances.gh (366.8 KB)

Hi.

Since the points are rhino inputs and are not achieved in your grasshopper file, it may be more complicated to have intended point clusters. With this algorithm, “closest point” component may help. However, if you elaborate on what you want to have (even with some sketches) we can give it a try.

hello , I have the points where the objects intersect the idea is perforate the objects in the middle, I want move those points just i in the middle but the distance is variable so I have no idea how to evaluate it to put the pin, thanks

The point component of your definition consists of 66 points that are positioned in the middle of some front edges, and you want to find the distance of this point from the centers of all surfaces. Is that correct?

An amusing structure.


distances_2025Jun7a.gh (388.5 KB)

This is what I need, I was able find the way, But I would like to know how to find it with another methods.

Just a little :P, and It’s very cool to visualize it so colorfully

could you help me to get the same order in the tree after dispatching elements?. if in the branch 0 was dispatched 12 elements of 15 reordering branches the branch 0 be with 3 elements and successively
Order tree branch.gh (157.2 KB)

Before Flip Matrix colors are in proper sequence:

After Flip Matrix they are not:

You had 66 points internalized in the ‘G’ input of Pull Point ( :-1:) and 300 points in the ‘P’ input, all flattened :interrobang: So 300 values emerge from the ‘D’ output, but what do they mean?

The ‘B’ output of Dispatch has a flat list of 300 surfaces
 How are they to be sorted? And partitioned?

What about the ‘A’ output of Dispatch :question:

I had my play with this three days ago and am glad it’s not my problem. :smiling_face_with_sunglasses:

I wanted to get the order in the surfaces to find the direction of perforations but using the points works for now, thank you for your help!

:interrobang:

what I was trying to achieve was: after dispatching the surfaces what I needed, retrieve the data structure in the 15 branches.
{0;0} N=20 to {0;0} N=3
{0;1} N=20 to {0;0} N=7


But I hve no idea how to sort it

Something like this (without relying on the points)?
distances.gh (155.1 KB)

If you must use the points you can do it like this:
distancesb.gh (147.7 KB)


Sorry, no pretty colors :winking_face_with_tongue:

think itÂŽs enough to just not destroy the datastructure? dont flatten-?
Order tree branch_jvs.gh (157.2 KB)
that helps keeping the list adress
if you need to keep the index in the list too go for sifting instead of dispach to get null items as place holders or graft the tree to get empty lists.

1 Like

This finds the two closest faces to each point:

P.S. Oops, meant to use ColorBa instead of ColorJa:



Order tree branch_2025Jun10b.gh (158.6 KB)

1 Like

Extra, using split tree (instead of dispatch) if you need it to put it back together correctly:
distances_c.gh (160.6 KB)

the first example is interesting, nice approach but some intersections are missing (in the circles in red) if it would be fixed, the next step is generate a line between those lines in the middle , Right like the second example. In the third is still missing some intersections but how would create the line with that data? like the second example.

This works perfect in just simple steps Thanks

This is more or less what I was thinking but with that structure how can I get the lines between them

Thanks u all

Oops, good catch - this should take care of it :stuck_out_tongue:

Well, it’s done that way only because you seemed to be aiming for not requiring your internalized points.

In fact, as you see the file name (distances) comes from your original file, which I worked on originally, but then had to drop it. As you know, your first brep set had some curved surfaces, which made it a little more involved.

Cheers

1 Like


Order tree branch_2025Jun10c.gh (167.0 KB)

I guess never stated it but one provided screenshot showed you the lines linking the brep faces :slight_smile:

Yes man with that example no problem is the cleanest way I think ! very similar I got just with the points But I got doubt how to create the line with the other structures data examples.

Just want to know how get the line with the data arranged. :sweat_smile: thank you