Grasshopper

algorithmic modeling for Rhino

This is, I think, a relatively simple question, but I can't seem to figure it out.

I have a Rectangle component generating a set of rectangles with different sizes. After the rectangles are generated, this set is culled. I'd to be able to read the sizes of the culled set of rectangles (these sizes are rounded to a small set of values; what I'm ultimately trying to do is count how many rectangles of each size there are in the set).  

So, I'm wondering how to do that. And, in general, how to read values of parameters like this, that are sort of packaged within a single entity. For instance, if I wanted to get the position of these rectangles instead of the size, how would I do that?

Many thanks!

Views: 2282

Replies to This Discussion

I was thinking about this and I figured one way to do it would be to take "L" output of the Rectangle object (ie, curve lengths of the generated rectangles) and then cull it using the same criteria that I use to cull the set of rectangles. However, I'm still interested in the more fundamental question: is there a way to access data embedded within higher-level entities? 

You can use the Area component (under the Surface tab) to get the m2 of your rectangle(s).

Not sure what you mean by "data within higher-level entities". Do you mean sticking the output into a yellow panel to see what's the data?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service