Grasshopper

algorithmic modeling for Rhino

When using the sort points tool, it seems to be breaking down at some point. As the attachment shows, it is not sorting the y column in numerical order.

Any ideas?

Luke. 

Views: 470

Attachments:

Replies to This Discussion

When numbers are displayed on the screen, they are typically rounded to avoid things like 31.5000000000000089 and 31.500000000000000092 and 31.49999999999999997.

Almost all floating point numbers that are the result of some sort of mathematics (and often also ones that have been constructed by hand) suffer from noise in the least significant digits. Although this noise is in all likelihood meaningless garbage, it will still affect sort order as the smaller than and larger than operations are well defined. You didn't post the file so I cannot check whether it is the case here, but the sorting along y probably doesn't happen because the sorting along x is overriding it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service