Jump to content
teknomatika

Draw a maximum number of circles inside in polygon

Recommended Posts

teknomatika

Hello! I've been here and here, and both are good jobs. But, as a challenge, I wanted a routine that would allow to draw inside a polygon within the largest possible number of circles with a radius value that would be provided as a variable.

 

Example:

cadtutor_circles.jpg

Share this post


Link to post
Share on other sites
BIGAL

Manual way Array your circles so bigger than perimeter cover whole shap move a bit for best fit, the erase use "F" option do a few times and you will have what you have posted. There is another post in the last week or so doing something similar will try to find I am trying to remember a 20 year old solution.

Share this post


Link to post
Share on other sites
eldon

That almost sounds like the "Garden Path" lisp that was used as an early lisp tutorial.

 

You could get more circles in if they were arranged in a different pattern.

Share this post


Link to post
Share on other sites
teknomatika

marko_ribar You are right. In fact this (2D) is the optimal arrangement. That is precisely what I intend.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×