Identifying unique panels

Hi,
Unique Panels.gh (459.8 KB)

I have a façade which has a range of unique elements, some are mirrored/flipped making but remains the same. Is there a way to sort similar geometry with the same angles? I want to know how many unique elements I have on the façade, representing them visually with colour

Please see attached script.

Hi,

You cannot compare Breps directly. You have to extract a number that represents the entire geometry. After trying with the angle of the tip of the block, I tried with the distance from the tip to the left of the panel for better results.

It seems this facade is built by GH so you probably have those angles/distances available somewhere instead of computing them again ?

Unique Panels.gh (476.7 KB)

1 Like

Hi @user2662
here’s my attempt, pretty much consistent with @magicteddy solution. But instead of calculating one angle, I grouped the three angles (roughly) to a distinctive identification “code”, unique for each different type. The rounding allows for tolerance in grouping.


Unique Panels_sort unique by angles.gh (470.8 KB)

2 Likes

You seem to have the same jittery pattern on the upper part of the right facade as I had. Hence the change to distance.

Unique Panels V0.gh (476 KB)

Kinetic Facade issue - Grasshopper - McNeel Forum

2 Likes

Ok, had to check this… Solution seems to hold up after check-up.
I oriented all “similar” parts to Y-axis, and the shape groups seem consistent.

Rounding with 1 decimal, we get 16 different ones.


With maybe a bit too much variation within one group.

Rounding with 2 decimals gets better results, but gives 116 different ones.

Unique Panels_sort unique by angles.gh (474.2 KB)

1 Like