I am attempting to control a twist within a square and my script seems to be quite long and may contain unnecessary steps. I was wondering if anyone had ideas to simplify the script. My thought process goes something like this:
Only two sides of the tower should twist. The other two should be straight. Hence I Equally dividing two sides of a rectangle and connecting creating a line for each division. This is so the twist remains within the constraints of the square.
Here I am overusing the list item component to isolate specific vertices and edges to generate a final volume
This is a bit of a pain and works only with this specific rotation. Say I wanted to rotate the other direction at the beginning of the script, but due to the specific isolation of the list item component, it would not work.
I was wondering is there was an easier and more efficient thought process. controlling twist.gh (22.2 KB)
Initially, I dug up a five year old GH model that is similar but yours is cooler so I worked on it. The white group looks complicated but that sort of thing is common in GH models to be truly parametric and not rely on sliders or text panels for index values to select faces, edges, points, etc. I have five text panels in this code for those purposes but if you look closely, great care is taken to be sure those index values will be accurate, even if the model changes. I’m sure I missed some things in that quest.
P.S. I missed this part completely! Will take another look as time permits. Designing with that kind of variation in mind usually requires parameters to drive it, in this case:
Bottom edge to start loft. (0 to 3)
Clockwise or counter-clockwise rotation to get the top edge of the loft. (bottom edge value ± 1)
Thanks for this example! Much more condensed and efficient. Will have a look at the white group and try and understand it. Good luck with the rotation:)