Grasshopper

algorithmic modeling for Rhino

common points between a curve and a set of points

i have a set of points and a curve.

some points are on the curve, some arent.

how can i separate the ones one the curve from the others?

Views: 347

Replies to This Discussion

Chris

Ooops.

 

Chris

Hi Chris,

 

you don't actually need the If() statement, it already evaluates to a boolean.

 

x < 1e-12

 

does exactly the same thing.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

 

Got it...Thanks.

 

Chris

Hi mxmln,

 

you use the [Pull Point] component to measure the distance from each point to the nearest curve. If this distance is very small, the point can be considered to be on the curve. Don't compare the distance to zero as you'll likely have to deal with some faint noise in the number accuracy:

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

***

thank you!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service