algorithmic modeling for Rhino
Tags:
So the problem is you have a bunch of curves that represent surface edges, and you want to figure out for each curve whether it belongs to the 'top', 'bottom', 'left', or 'right' category?
How do you define membership of these categories?
[...] which looks like it does.
I wouldn't count on it, it's certainly not a guarantee. You may get lucky it may work, but be careful and double check the results if this ends up in a fabrication pipeline.
When you extract the edges you can plug them all into a [List Item] component, then zoom in on the right side of the component and add the [+1], [+2] and [+3] outputs. You now have 4 separate outputs, each containing only one type of edge.
Ah, sorry, you'll need to measure all the curve lengths individually first. You can do this either before the [List Item] component in which case you only need to add [Curve Length] once, or you can do it after, in which case you'll need to add the component 4 times, once for each category.
Once you have the lengths in 4 separate streams, you then use [Mass Addition] to add up all the numbers in a list. But careful, after the [List Item] component your curves are probably not in a single list, they are more likely to exist in trees where each curve is in a separate list. So you'll need to flatten these trees first, then perform mass addition.
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