Algorithm for a cell of the triangular grid

I’m trying to frame an algorithm such that the size of the triangle cell should be dependent on the length and width of the rectangle so that the grid fills the area of it. I’m unable to do it. Please help.

TRIANGLE FACADE WORKOUT.gh (12.4 KB)


triangles_rectangle.gh (7.1 KB)

2 Likes

pufferfish ???

1 Like

Thanks a lot! With your answer, I learnt two new components today, bounding rectangle and map to surface :grinning: