Grasshopper

algorithmic modeling for Rhino

Rasmus Bendtsen
• Lyngby
• Denmark
• Blog Posts
• Discussions (3)
• Events
• Groups
• Photos
• Photo Albums
• Videos

Rasmus Bendtsen's Discussions

Find first bigger value10 Replies

I am trying to find the index of the first value in M_Rd which is bigger than the bending moment on the left. Any suggestions on how to solve this?…Continue

Started this discussion. Last reply by Anders Holden Deleuran Mar 21.

Rasmus Bendtsen's Page

Latest Activity

"Ah yeah, I think I didn't explicitly set type hints, so the data will be passed as a string when coming from a Panel (just right-click the input parameters and set them to float to fix)."
Mar 21
"It looks like you interpreted the problem as I did - find the first value in the sequence that is larger rather than the smallest value that is larger.  I hope the OP (Rasmus Bendtsen) will clarify his intention, and perhaps post his…"
Mar 21
"Here's a simple solution using GHPython (that might be faster on large data sets, since you can break out of the loop as soon as you get the first value that is is larger than the bending moment):"
Mar 21
"This code depends on the sequence of the 'M_Rd' data, returning the index of first item in the list (in sequence!) that is bigger.  Reverse the list and get a different result:"
Mar 20
"When you say "the index of the first value in M_Rd which is bigger", I thought you meant index of first item in the list that is bigger?  So for your example, the index would be 1 and the value=70.68? Or did you mean index of smallest…"
Mar 20
"Never mind. I solved it. But thanks again! :)"
Mar 20
Mar 20
"Hello, this could be a way too best alex"
Mar 20
"Thanks a lot. For some reason the member index does not return an index..."
Mar 20
"Hi. Check this. Best."
Mar 20
Rasmus Bendtsen posted a discussion

Find first bigger value

I am trying to find the index of the first value in M_Rd which is bigger than the bending moment on the left. Any suggestions on how to solve this?Thanks,RasmusSee More
Mar 20

Profile Information

Company, School, or Organization
Technical University of Denmark

Join Grasshopper

• View All