algorithmic modeling for Rhino
I have a set of curves. They form islands in some parts which include closed curves.
I would like to start raising the curves like a mountain as if they were contours of something. So starting from the outer curve and going to the inner ones you raise each curve by one step. I didn't manage to find how to describe this to gh. Has anyone faced the same question?
Tags:
Quite easy, actually. Sort the 'Area' of the surface defined by each curve and move each surface in 'Z' according to its area: smallest the most, largest not at all.
It gets more complicated with multiple "mountains", since you have to determine which curves are contained within each other, essentially creating stacks of parents and children.
Are you working from random topographic curves or do you know more about which curves belong in each "stack"?
Thanks Joseph. Some times there more than one curve included in each curve so then if I sort them by area (I had this idea to sort the curves by curvelength), they won't be in the same level as they should. So as you said its the second case that you described. multiple mountains, multiple islands, parents, children.
I generated some field curves. Which I eventually want to use as contours.
thats a nice idea thank you very much. Do you think i have to work more on data management in the first part of the def in order to avoid the so many duplicates it generates, as the file gets really heavy then and it starts getting really slow?
Yes, "data (list/tree) management" is the key to understanding Grasshopper.
Very nice!!
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