Grasshopper

algorithmic modeling for Rhino

Hey,

 

Could anybody help me finding the points on a curve that is closest to the next curve.

I know there have been a few other discussions about the subject but not about the amount i'm talking about.

 

Does anybody know a awnser?

T

Views: 5114

Replies to This Discussion

Thanks for your reaction.

But I need the exact closest point between the circles, (some how it got baked it wrong),

We need to CNC the joints in the right place, so we need perfection.

 

Attachments:

Here is an attempt using Kangaroo (points constrained to circles and attraction between points). I wonder if its perfect enough for you.

Attachments:

Ahh, your the best!

do you have the grasshopper file than I can check how you did it.

Not optimized at all.

Attachments:

Nice,

I took a shot at optimizing it a bit, if anyone's interrested.
(used Proximity 3d + Curve CP to select "promising candidates" for shortest distances, not very generic but works well for this case)

Attachments:

Aaah lot faster ! It seems also pretty accurate.

If you're willing to get your hands dirty with scripting, there's an SDK method for exactly this: Rhino.Geometry.Curve.ClosestPoints. It will find the point on each curve which is closest to the other curve.

Here's the script - should be pretty fast and very accurate. 

Attachments:

Wow thanks every body for your help

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service