algorithmic modeling for Rhino
Hi everyone.
I was attempting in doing an algorithm for the developing of a generic ruled surface, starting with an hyperbolic paraboloid.
As for today I've managed to divide that surface in N smaller surfaces, extracting their contours, putting them to plane and recreating a surface (don't know if there was a quicker way).
However, my problem is: when I connect the components all together, all the surfaces I obtain are overlapping (see attachment).
I though of creating a vector that goes from one end to the other of one of the smallest sides (let's call it ds), meaning that every surface should move according to this vector. But now I face the fact that a generic i surface should move according to the previous, and so on; which is, I need to someway loop the component move over and over.
In layman's terms, that's what I have and what should happen:
Surface 0 in the list should not move.
Surface 1 should move according to point 0 and vector 0.
Surface 2 should move according to point 1 and vector 1, HOWEVER point 1 and vector 1 should have move previously, as they belonged to surface 0: so they should have moved according to point 0 and vector 0.
Surface 3 should move according to point 2 and vector 2, however... and so long.
I recognize a looping fashion in this algorithm that I can't come over.
Thank you for your help!!
(see attachment)
Tags:
First of all: File over screenshot.
Are you trying to unroll the surface? If so, try to search this forum. Many have done this before.
As for your specific problem: you should look into compound transforms. One example of how to apply them is this.
thanks, I'll surely check it. But I have to guess there isn't a way to perform a loop action on lists?
Normally GH doesn't allow iteration, still there are ways to do so. Either script it in C#, VB or Python, or use Hoopsnake.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by