Grasshopper

algorithmic modeling for Rhino

Total QTY and LENGTH of common edges. IE Left Top Right Bottom. Whats better MESH or SURFACE. (#2)

I am trying to have grasshopper count how many parts and total length of different edges when setting multiple Mesh/Surfaces.

Top QTY / Linear Feet
Right QTY / Linear Feet
Left QTY / Linear Feet
Bottom QTY / Linear Feet

Is it Mesh or Surface the best option for this?

Views: 420

Attachments:

Replies to This Discussion

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?

Not sure. So as you can see that there are 0,1,2,3 for the different edges. Does this always stay the same with 0 always being one side ect. which looks like it does. So what I need it to do is give me the quantity of all 0's 1's 2's 3's for total count and total length. Something like this.

0,12,1746
1,12,1983
2,12,1983
3,12,2467

Then I can hid the first branch.

[...] 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.

But how do I have it total them and count them. This is pretty new to me. Is there anyway to show me.

Thanks

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.

Thanks ill try it out when I have more time.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service