Nature Roof - Triangular surfaces between two irregular polylines + Orientation Analysis

Elaborating on the tittle, I’ve created a file that generates the structure to withstand a roof from two irregular polylines. The file includes that code if anyone finds a more efficient way of creating the same :smiley: (image 1


However now Im in the process of creating a “cover” for such structure. To simplify the geometry Im trying to generate triangular surfaces (3pts instead of more because the surface would become curved). My solution was to extract vertices from the polylines to then generate triangular planes, but I dont know how to automatize such process.

Following the (Process Image

) I want the code to select Vertices BC2 and generate a plane; CD2 plane ; 23D plane ; 34D Plane ; DE4 Plane ; EF4 Plane ; 45F Plane ; 56F Plane…etc. To achieve this:
Its a pattern im not sure how to implement in the code…

Finally Id like to analyze the orientation and areas of such surfaces, to find out how much area points south. I know its a bit complex…Any help would be greatly appreaciated

Example help.3dm (185.9 KB)
Help (23.4 KB)

Geometric Region by Heteroptera used

Roof (24.8 KB)


WOW that’s seriously impressive, thank you so much, I have been breaking my brain for days haha
Again thank you so much

EDIT: @Jakinta is there a simple way of adding more consecutive polylines to create surfaces in between, without duplicating all the code? Im wondering if that would make the file faster, and just “selecting multiple” generates errors with the surfaces

1 Like

It depends…mostly on that will the pattern be the same…even with that it needs some tweaks…

Upload the file with more consecutive polylines…

1 Like

Attached, Thanks
Example help2.3dm (158.8 KB)

I am not quite sure how your logic develops further,
but you might check attached and edit it to pursue your goal.
Check the white group in file.

Roof (38.8 KB)


Hhmm the series that I explained at the beginning applies for each “row”, so there would be 4 series of the explained pattern. I think i’ll just use 4 copies of your previous code to avoid surface errors.

Sort of on a similar line (dont know whether to create a new post), with the first “code” some of the surfaces appear to be generated inversely, which causes an error when I try to analyze the orientation of those surfaces as the normal vectors point downwards. Is there a way of resolving this issue? It affects the solar insolation calculation…

Roof (62.9 KB)
Example help2.3dm (100.6 KB)

1 Like

Cheers :slight_smile:

Roof (22.6 KB)


If only I could understand half your file so I wouldnt have to bother you this much haha
Thank you so much Jakinta

1 Like