Tangent Squares to Circle

tangent

Good evening, i am quite new to grasshopper and i am struggling with making squares that are tangent to a circle. I tried many components but without any luck. Could anyone help? Thanks :slight_smile:

there are many ways to do this, but probably the simplest is to make a square from center, move it on the X-axis by (radius + 1/2 * square_width) and make a polar array around the origin of your circle

1 Like

2 Likes


RectanglesAlongCircle_re.gh (7.8 KB)

2 Likes

I really appreciate all the answers!! I am trying each of them and i will come back with my results!

Ok the solution with frames works great!! Thanks a lot for the immediate answers!

Well, i tried to place a rectangle at each corner, but if the array counts 3 and the planes are not vertical the second smaller squares does not follow the random angle…I used discontinuity component to select the corners. Is there any solution for this?


RectanglesAlongCircle_reV2.gh (10.7 KB)

2 Likes

It’s easier for everyone if you post a GH file.

2 Likes

You are right :slight_smile: . However with a little luck i figured it out… Thanks again.

You can also use Polar array as Gijs suggested

squ_cir.gh (9.8 KB)

1 Like