Grasshopper

algorithmic modeling for Rhino

So I am trying to find a way to test if a point is on a line, and haven't seem to come up with good solution, since there is much smarter people in this forum I thought I would ask here.

Currently the only thing I have come up with is if the point satisfies the equation for the line (y=mx+b) and a given range then it would be on it, but that seems overly complicated of a test.  

Views: 3869

Replies to This Discussion

Use the Curve Closest Point command.  Then test if the distance is 0, or very close to 0 if you find the distances are something like 0.001 using Evaluate and then go from there.

Thanks.  Defiantly more workable.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service