How to create a parametric triangular pattern in grasshopper?

I am making a facade with a triangular patterned 3d wall . I want 3 modules of triangular panels. I have successfully covered the plane of facade with 1 single module and I want to divide the pattern & introduce other types too. also at nodes of those panels I want triangular LEDs.
Can some one help me to solve this puzzle.
Triangular Grid (Shorter Definition)_reV2.gh (23.1 KB)

Why two copies of the code? Which one do you want us to look at?

Your curves are not internalized so code is useless. I tried but guessing is a waste of time.

Try to draw it in Rhino

Triangular Grid (Shorter Definition)_reV2.gh (13.6 KB)
This one is the revised file with internalised data

Triangular Grid (Shorter Definition)_reV2.gh (13.6 KB)
this one is the revised file with internalized data & one code only


triangular facade_2024Aug29a.gh (28.6 KB)

P.S. Or if you prefer a more random facade? Try the ‘Seed’ sliders.


triangular facade_2024Aug29b.gh (26.3 KB)

P.P.S. As the image indicates, and regardless of ‘Seed’ values, there are about twice as many flat panels (0) than peaked panels (-1 or 1). Not sure yet how to fix that, :thinking:

triangular facade_2024Aug29bb
triangular facade_2024Aug29bb.gh (24.2 KB)

Oh, of course, here’s a solution.


triangular facade_2024Aug29c.gh (27.3 KB)

3 Likes

Oh wow… this is amazing Joseph… thanx a ton!! As a newbie I was trying to solve this since 2 weeks but was not able to. I m really glad the efforts & time you have put in ! i think optionB will be more workable with me… I will study them all …Thanks a lot again!! :pray:

Two ways you can play with the pattern in version ‘29c’:

  • Add a 0 to 1 slider to JitterJ’ input and
  • Modify the text panel list connected to RepeatD’ to change the ratio of peaks, valleys and flat surfaces. In this example there are three times as many flats (0) and twice as many peaks (1) as there are valleys (-1).

1 Like

thanks a lot dude! :slightly_smiling_face: