Grasshopper

algorithmic modeling for Rhino

I have a set of curves that have been split at various intersection points creating a lists of lists of curves.

I need to remove all the curves from the list who's length don't match some conditional expression, such as i<1.

I'm sure this can be accomplished in a very short vb script, but I don't know enough of grasshopper/rhino vb scripting to accomplish this myself yet. Although if it can be accomplished in grasshopper alone, that'd be great.

Views: 9882

Replies to This Discussion

You measure the length of each curve, then use the [Larger Than] component to compare these measured lengths against your threshold value. This will now give you a collection of True (larger than) and False (not larger than) values which can be used as the pattern in the [Cull Pattern] component.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Okay, it works.

Thanks for the help!

Adam:

Maybe this can help

Best

Attachments:

RSS

About

Translate

Search

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service