Grasshopper

algorithmic modeling for Rhino

how can I extract the data that falls within a range of 30 to 150? i would appreciate help!

Views: 3967

Replies to This Discussion

Hi Mohamed,

 

You can use two compare components (smaller than and larger than) and then a Boolean AND gate to combine the results. This should give you a list of True/False values which you can then use to cull your data. Use the Cull Pattern component for this.

 

You can also use an expression component to unify the first three steps, the following expression will achieve the same:

 

(x >= 30) And (x <=150)

 

The resulting list of True/False values must again be processed by a Cull Pattern component.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks David. But how can I feed the "P" in the Cull Pattern Component making it extract only the "True" values?
Thanks. I figured out a way to do it.

David

 

can we not use masking in the branch compare component? One problem I have using maskign is that real numbers seem to give an exception when used in a mask string i.e.

 

[0-10] will select points with x in the range 0 >= x >=10

but [0-10.5] will cause an exception.

 

Can we get some help for the syntax for masking?

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service