Grasshopper

algorithmic modeling for Rhino

Hello,

I have a problem sorting midpoints first by y-values and then by x-values (see image) in python language. Sorting by y-value works, however subsequently it doesn't sort at x-value. Could this be depending on the draw direction of the line (from left to right or from right to left). Does somebody has a solution?

Thanks in advance 

Views: 76

Attachments:

Reply to This

Replies to This Discussion

This post/thread might help with the general problem of sorting values by keys in Python.

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service