Grasshopper

algorithmic modeling for Rhino

Move Circles Along Curve Towards Mid Circle Till Tangent

Hello all,

I am trying to move the a set of circles along a given curve towards the mid circle, until they become tangent with each other.

I have been struggling to come up with an elegant solution.

Thanks for any help.

Views: 1389

Attachments:

Replies to This Discussion

If your circles all have the same radius, you can use Divide Distance. If not, it gets a lot trickier.

Attachments:

For variable circles you can use Galapagos, or, if you're up for it, custom scripting.

Attachments:

Thats really nice David, thanks!

But all my radius are the same, what changes is the initial distance between circles. I tried using the galapagos example replacing the radius with one value, but it didnt do the trick.

Each point needs to move x distance along the curve, and each distance is different for each circle because the points are located at different t along the curve.

Bumping

So why not just make the circles all different using my second example? You can add the constant circle radius to the unique gap spacing to create your different circles.

Or create constant radius circles interspersed with circles that each have a diameter equal to the desired gap. Then when the solution is complete, harvest all the odd circles from the total list to get rid of the gap circles.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service