Grasshopper

algorithmic modeling for Rhino

hi guys

 

i'm trying to find the maximum value (one value) in a set of numbers by using the expression max (x) in a single variable expression and nothing is happening it is returning the whole list as it is.

 

I appreciate if anybody can give me an answer to this problem or maybe there is a better way to do that.

 

to be more clear i'm trying to find the heighest point (z) in a set of points samples on a brep.

 

Best

Views: 4031

Replies to This Discussion

hello Wael,

i guess you re decomposing the point for that. you can sort the flattened list of z values with itself. you ll get a list ordered from smallest to biggest. from there you can reverse and extract first list item, which will be your biggest number.

 

cheers

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service