Hello.
I am trying to make a script that can calculate the facade area of irregular shaped walls.
I used this script previously with rectangular walls, but I do not think this can be applied to irregular shapes.
Could I get some tips to solve this? Thank you so much in advance.
Facade area question.3dm (266.3 KB) facade area question.gh (15.4 KB)
To extract the area of a single face, exterior face is in this case the one of which the center point has the largest x-coordinate.facade area question_ME.gh (12.3 KB)
1 Like
Thanks a lot for the tips! That solved my question.
I am trying to understand sort-item-list in this script.
What difference does it make if you put A value to sort or not?
Sort sorts values from small to large; if you plug in a list of values in the K input it just sorts the values (ascending).
If you have a bunch of faces and you compute the area of these faces you have two lists. If you want to sort the faces by area you connect the list with areas to K and connect the faces to A to sort the faces along with the areas.
I hope it’s clear in the attached example: facade area question_MEv2.gh (15.9 KB)
1 Like
Thank you! It makes it much more clear.
Thanks for your time!