Always having trouble with plane alignment

Hi there :slight_smile:
Whenever I do definitions in GH, I always have trouble understanding how to align planes. I have this initial curve with 184 planes, that I would like to be aligned to the main curve. The loft comes from two curves, with one offset of 10 cm, so the surface is not straight.

My logic was to create a vector between the center and each surface, but when aligning and trying to obtain the tangent, I always find myself in big trouble solving this.

I would deeply appreciate some input and some advice or tips for future works like this! thank you
116_Fassade.gh (18.7 KB)

Your GH filename is misspelled? “Facade”, not “Fassade”.

The second thing I see is that you ignored an error message from Divide Surface:

  1. Data conversion failed from Brep to Surface

Thie is because loft using Offset Curve produced a brep, not a surface.

So I skipped the offset curve and used the original instead. No time no to look deeper but I see this at the end:


facade_2025Jun11a.gh (17.6 KB)

Maybe later.

1 Like

Not sure what you mean by “Alin planes”. Please explain your issue again.


Maybe you mean this? Also i do not know what you’re trying to do with scale, but be sure that two lists shown with orange arrows are corresponging, you might need to sort the list after Surface Split component.

Fassade is german.

1 Like

Hi! Thank you for your reply :slight_smile: Fassade is in german (:

I see the problem! but why before it was working ok? I never saw the divide surface getting error. The loft between the two curves is not in the same plane so I understand it could turn into a beep, but the division I intend to do in the surface must be parallel between each other (I tried doing this by dividing by length both curves and creating a line between two points but they were not straight lines)

Thats the part that I do not understand how to solve properly, since every surface I created from the split must be aligned with the centroid of the original curve (or just aligned with the loft that I created at the beginning). The scale UV is because I need to leave a gap in between each panel but maybe I can achieve this in another way, im not sure :frowning:

fassade11juni.gh (19.6 KB)
Ok i fixed the loft part, the original internalised curve was badly done, but now is an open surface which works ok.


When I scale each panel in order to leave a small gap in between each panel, they are no longer aligned to their original plane as you can see here in the picture (red is original loft surface divided, green is the scaled one)

I looked at your code again and saw some patterns that I could simplify. Is this what you want?


facade_2025Jun11b.gh (18.5 KB)

Reading your replies now


Perhaps we have different units tolerance values? That can cause differences.


I apologize it was not clear, but I just want to keep the original division I created on the loft surface but scale each panel in only one direction leaving a gap in between of 10 cm. The only way I thought about doing this was through scaling NU

Perhaps I got this wrong - do you want the surface fragments to rotate around their center points?

I don’t know what that means and haven’t looked at your latest code.

I removed scale because I didn’t see any need for it. But perhaps I don’t understand what you want.

We are talking past each other, I better take a break.

No, I just want to leave a small gap in between each panel, that’s why I used the scale component

But there is already a gap because the surface fragments are rotated. And the fragments at each end or not flat (planar) because the follow the curve, so scaling them isn’t the same as moving an edge.

A gap aligned to the original surface, I do not intend to rotate them independently based on the center as the definition you shared with me. I want to keep their position and plane, I only want to create a small gap in between the panels, not by rotation, just by the width of the panel, meaning that if now 1 meter, now it should be 0.90 with 0.10 in each side for a gap

You replied before I finished typing. The surface fragments at the curved ends are not planar.


I fixed it! I just needed to connect the slider to both scaling in x and y, therefore the scaling is proportional :slight_smile: !!!

Thank you for your input tho and sorry if it got overcomplicated when it was a very simple question.

“Simple questions” don’t always have simple answers :red_exclamation_mark: I’m still dubious about scaling to leave gaps. There are other ways.

This purple group sets the actual width of surface fragments (blue group) without Scale NU:


facade_2025Jun11c.gh (24.8 KB)

Rotate still works but maybe that requirement was another misunderstanding?

P.S. I modified the purple group so the ‘Width’ slider (blue group) is proportional (0 to 1), regardless of the ‘Count’ slider (white group). The ‘Actual Width’ is in the labeled text panel.


facade_2025Jun11d.gh (27.6 KB)

You were almost there.
fassade11juni.gh (19.4 KB)

Rather than constructing a plane at the bottom of the surface you can evaluate each panel surface to find a properly oriented/aligned center plane from which you can scale in Y direction to create the gaps:


If you need the scaling to be uniform then use the same slider for both X and Y as you said earlier:


NOTE:
As you know, scaling does create a gap between panels, visually. This inevitably modifies your panels a bit though not immediately perceptible.