# How can I apply Al Bahar Facade on This Twisted Tower

How can I achieve Al bahar module on this twisted tower , I have script both for tower as well as module, just cant get enought head around to apply it on my form. Any help would be appreciated. Also facade should be allowed to open and close.
Al bahar Facade on this tower.gh (37.0 KB)

Hello,

Your module is triangular, but the panels you defined are quadrangular - and not planar. What would be your expected result ?

You could divide those panels in half and use `Triangle Mapping`â€¦

Can you use the triangle mapping and show me the way around!!!

You can also use triremesh to have nice triangles.

Al bahar Facade on this tower LD.gh (9.8 KB)

1 Like

Thanks a lot, but i am not able to adjust the facade!

A sketch would come in handyâ€¦

All the facade is closed, i want some to be opened and some to closed in gradient pattern.

I would like something on the tower

al bahar extended.gh (20.9 KB)

The base pattern canâ€™t really be used for mapping since itâ€™s based on an equilateral triangle, with symmetry. Also, it needs to vary, which wasnâ€™t clear from your first post.

Instead I built the pattern for each triangle on the surface.
The attractor effect is based on the altitude, but it could be changed to the distance to point(s), curve(s)â€¦

OMGGGâ€¦ this is what I wantedâ€¦ Thanks a lot to youâ€¦you really showed me a efficient way to build this and I am learningâ€¦just one more question how can I add attractor for distance to point(s), curve(s)â€¦

First draw some points in Rhino along the surface and reference them in a Point parameter.
Then use `Closest Point` component to compute the distance from the centroid of the triangle to the point(s).
Replace the wires going out from Z component output to Distance output (maintain Ctrl+Shift pressed, then drag the wires)

If you have a curve, same thing with `Curve Closest Point`.

This is a more complex construction, but it makes the thing foldable, which I assume is the whole point.