how to draw circles inside each other

I want to create a random a polygon then I want to fill the polygon with circles with 3 different radiuses, I want to fill it first using the largest radius then with the smaller radiuses but the circles should not intersect with the polygon or with other circles please help me

 Akzeptierte Antwort

Image Analyst
Image Analyst am 11 Feb. 2014

0 Stimmen

Feel free to adapt my demo, attached below.

Weitere Antworten (1)

Mark
Mark am 11 Feb. 2014

0 Stimmen

Create the polygon, create a circle as large as you want, with the radius being your main variable. Pass the radius of your first circle to whatever is drawing your next circle. If you create the circle with the center being the same as the previous circle, and a smaller radius, you are guaranteed to not create a circle that inserects with the previous one(s).

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 11 Feb. 2014

Kommentiert:

am 11 Feb. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by