Grasshopper

algorithmic modeling for Rhino

Hi there,

my situation:

.I have n number of panels with different dimensions

.I would like to schedule all the panels according to the area (20 panels 2sqm, 30 panels 3 sqm,...

I sorted the area and I manually filtered with equality component the panels, but I would like to avoid to review manually each value, since changing the number of panels the value change.

thanks in advance!

Views: 2705

Attachments:

Replies to This Discussion

yes, it works, but I would like o select  a single group of panels using the index in the data tree:

using index  0 I should select the four panels with the same area 

using index 1 the two panels with the same area.

is it retrieve branch?

Attachments:

Replace the distance values here with your area values, and replace the square grid points with your panels. 

http://2.bp.blogspot.com/-SQiKLliHuiw/T5IyPWtwhOI/AAAAAAAAALc/ZuYWe...

What is the 'DomComp' component in your example?

it is deconstruct domain, the screenshot is old and that component used to be called "decompose domain"

Interesting...  I can sorta see how it works in your example, though would need to wire it up to be sure.  Is that code available?

Not so clear how to apply that technique to this question though?  As always, code would help.

"code would help" - code is there via screenshot

It is applicable because by using domains you wont need to round (maybe you have a tolerance which determines that a panel is still "the same") so you would use sub domains, I'll wire one up later but am a bit busy at the moment. In the meantime here is an alternative to the rounding method.

 

Attachments:

"code would help" - code is there via screenshot

Ah, come on Michael, you know what I meant.  I'm not going to bother from a screen shot.

You didn't internalize the list of curves in this example but I get the idea, thank you.

Sure, of course I don't think one way is better than the other in this case, just nice to have some variants. 

Sorry about internalize, it didn't exist when I learned GH so I often forget about it :D

Try this 'Tree/List Viewer' tool I wrote; I use it ALL THE TIME!

The 'Sort' components weren't helping at all.  In fact, the way you had wired the first one corrupted the process.

Attachments:

YES!

thank you, Joseph! really clever, it perfectly works.

I have a new challenge!

now all the panels are different and is not possible to group with area!

there is a dimension that is constant and I need to select all the panels with this dimension.

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