Grasshopper

algorithmic modeling for Rhino

Hey everyone-

So after a few unfruitful hours with various minds working through the problem we can't seem to figure this out.  Basically i've got 47 2D curves.  All i want to do is remove any curve with an area less than 300 square meters.  I'm pretty sure that my definition is 99% there and I just cant get it to finish.  I keep ending up with the original curves showing at the end of the definition.  Any help or insight is appreciated.  Images attached to post. 

 

Evan

Views: 3333

Attachments:

Replies to This Discussion

heres something i was messing with earlier and i theres a component in there that does it.
Attachments:
Hey Aaron. Thanks for responding so quickly. Any chance you could post a screen shot of your definition. I'm working on school computers and we havent upgraded to 0.7 yet and I dont have access to install it on my own, therefore I cant see your definition.

Thanks
E
heres the image but ill explain it too. make planar surfaces from your curves, assuming their planar and closed. use brep area to get areas for curves, create a f(x,y) component and set function to either x>y or x
Attachments:
Got everything in place but setting the expression to 'X' returns all of my original geometries and setting to x>y returns 'Syntax error: Operator > not defined for Double and String' Where am I going wrong?
Looking at your original image titled big problem: you're not actually doing anything to the curves, just the numbers that are a result of the area component.

To get rid of the smaller curves don't bother with the sort or the reverse list just plug the Area into your Inc component directly to produce a boolean pattern. Then plug this into a Cull Pattern component along with the original curve list.
You're the man. Thanks Danny. I can't believe how simple the solution is and that I couldnt sort it out.

E

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service