Bi-fold rotation

Hello everyone,

I am trying to do a bi-fold rotation on this two lines, but not quite reaching the (maybe) final part of logic. Which should be the line endpoints lay together.


Bifold daught.gh (6.9 KB)

Please clarify more by sketching

So I manage to do what I wanted with lines. But now I am trying to do it with a box and struggling to find out, how the other extremity of the box would run in X axis while rotating anchored on the first box vertice.
Bifold daught2.gh (24.8 KB)





Anyone?

Bifold daught2 a.gh (27.5 KB)

Why kicking the open door?

@Piotr The problem with this aproach is that the “door leaves” will cross each other like what is happening in the red circle, while the whole sistemshould be operating like the green circle vertex


bi-fold.gh (12.3 KB)

Bifold daught2 b.gh (28.3 KB)

2 Likes

Thanks, this solution is what I was looking for, now I will take time to understand the logic behind it.

Shakes fist at @leopoldomonzani and @maje90

Ah well, here’s another one, this way with angles and trigonometry.

Bifold TN1.gh (17.8 KB)

2 Likes

nice, way more complex, but nice

My motivation was assuming that the geometry of each leaf could get as complex as you like, and include ironmongery etc so long as you have a reference plane for each one. Substitute the “make 2 boxes” group for any kind of modelling operations you like.

you assumed right, i am struggling right now with the other scripts to put the not so simplified door geometry on them.

1 Like

Bifold daught2 c.gh (32.5 KB)

Yet another approach:

bi-fold PS.gh (18.9 KB)

1 Like

Nice. I probably could have got mine down to something this slim if I’d tried harder (and remembered that Right Trigonometry doesn’t have Triangle in the name so I wouldn’t see it when typing Triangle in the search box :smiley: )

You guys are wierd. :face_blowing_a_kiss:


bi-fold VR 01.gh (18.1 KB)

2 Likes

Ok, you win :smiley: