Hello, I want to rotate the cubes in the shape on the 2 curves I showed, of course, this will vary depending on the performance data, but I could not do it. Can anyone help? You can find my rhino and gh files in the attachment.
hello. i’m guessing your intent a little bit.
but check the gh file i uploaded.
the basic reasoning is this. i create a middle curve. i extract a point at that middle curve, and a tangent.
i rotate the tangent between 0 and 2Pi → and use the point and rotated tangent to create a plane.
i intersect the two boundary curves with that plane to get the intersection points → then i select the closest 2 points. finally i displace 1 of them to the desired height
then i create another horizontal plane, and rotate that to my liking → i use that plane together with the two points to create a rotated box.
Hopefully this should get you on your way.
edit: if you want to use your method of extracting points → simply copy the part of the above gh file where the box and the plane is created to get the rotation functionality
Thank you very much. But I have 2 more important questions. I want to remove any number of cubes from this cube, like 4-5, how will this happen? Also, these cubes should work like a slab in the future, maybe there will be 8-10 story buildings. Because in the future stages, it will be connected to Archicad Live Connection and turned into an architectural project. Can I continue using this file? Or do I need to make another script?
I’ll happy to help, but I’m not sure i understand what you mean. can you explain a little better? use pictures/sketches/etc to illustrate your intention if you must
Actually, I will design a structure like this. The bottom side is a single piece with certain gaps. There are 5-6 buildings at the top. The purpose of the spaces at the bottom is to create a greenhouse there. These gaps will grow and shrink according to daylight and solar energy. The spaces are rectangular. The position of the buildings is that they are lined up or rotated in a way that cannot obstruct these gaps. I want to find the most optimal alignment so that the light reaches the greenhouse in the best way possible.