Sort pulled shapes to same number as surface

Hi

How do I sort these rectangles which have been created through pulling their vertices to the surface below them to have the same number as surface? The purpose would be to orient them together with the surface right surface.

Thanks


Sort shapes inside.gh (413.4 KB)

Here’s a No Plug-in version

Sort shapes inside Clean.gh (408.9 KB)

1 Like

Was that so hard? Unfortunately, your code still has many problems, including this error message in both R7 and R8:

Oh, ok, that last one was there by mistake, it wasn’t doing anything to the code. Here it is without the last one

Sort shapes inside Clean 2.gh (406.5 KB)

What are we supposed to do with this mess :interrobang:

As I said, your code still has many problems. :-1: (aside from being way too complex :bangbang:)

Sorry, not quite sure how to make it less complex, I have deleted some stuff here.
The point is basically to create the holes for the hooks here. for the little rectangle and make them the same number as the surface below. Just for orientation and cutting out. If there is another simples way than that might be preferable.

The holes need to be based on the hooks rather than on the triangular surface because the left hook meets with the right at the same place because a pipe will be fitted through the circular shape. So just offsetting the triangles doesn’t work because it won’t be at the right place.

Sort shapes inside Clean 4.gh (404.1 KB)

If I just bake the geometry and internalize it, does this become easier to resolve?

Ok, I managed to get what I wanted to do, by culling the lists, the only problem that remains, is that some of these shapes have 2 rectangles, and some 3. So on those shapes an extra outside shape will be selected. Is there a way to fix this? Also to apply the list to the rectangles.

Sort inside baked 3.gh (466.6 KB)

check this

intersect option 01.gh (455.4 KB)

Amazing! Thank you so much!

You don’t need to bake geometry to internalize it.

I’m not looking at your code again, three times is enough :bangbang: