How do i inscribe circles in polygon with sides touching

Post questions on how to use or achieve an effect in Inkscape.
bios
Posts: 2
Joined: Tue Aug 11, 2015 9:17 pm

How do i inscribe circles in polygon with sides touching

Postby bios » Tue Aug 11, 2015 9:49 pm

:tool_star: Hello,

Please I need help trying to figure out how to inscribe equal sized circles in a polygon in such a way that all sides would touch.
Picture attached is closest i could find online describing my request. In the image you can see 6 equal sized circles drawn inside a triangle with each circle touching its neighbor and the side of the triangle. I would like to be able to do the same for any number of circles and any kind of polygon.
I've explored tiled cloning, snaping, aligning etc but not successful. I understand some geometry is involved but would appreciate any insights with using inkscape to do same
Attachments
polycircl.PNG
polycircl.PNG (23.04 KiB) Viewed 1362 times

Lazur
Posts: 4345
Joined: Tue Jun 14, 2016 10:38 am

Re: How do i inscribe circles in polygon with sides touching

Postby Lazur » Tue Aug 11, 2015 10:50 pm

Hi.

There is no trivial solution for a random polygon.
Not just with inkscape, in geometry in general.

For a triangle alike, the construction is quite simple though, as with a few more shapes.
Is there a special pattern you would like to draw?

bios
Posts: 2
Joined: Tue Aug 11, 2015 9:17 pm

Re: How do i inscribe circles in polygon with sides touching

Postby bios » Wed Aug 12, 2015 5:09 am

Thanks for the reply.
The pattern i'd like to draw is circles bounded by an hexagon. See attached picture for the closest I was able to come up with using inkscape patterns. As you can see a number of the circles crossing the hexagon edges gets chopped off but I would however want the circles to be tangent to the edge of the hexagon and not cut off as in the triangle diagram previously shared. I figure if there is a way to do it for one type o f polygon then the same can be done for others as well.
Attachments
path9597.png
path9597.png (4.26 KiB) Viewed 1325 times

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: How do i inscribe circles in polygon with sides touching

Postby RobA » Thu Sep 03, 2015 10:57 am

You can do it by creating a hex pack of tiles clone circles, then scaling them to fit your hex,

Creating the tiled clones (P1 SImple Translation, shift each row by 50%x and -14.6%y) The -14.6% is the best you can do in Inkscape to get the trig derived offset needed to pack the circles.
2015-09-02-1.png
2015-09-02-1.png (65.64 KiB) Viewed 1244 times

Unlink the clones and remove all but 6, then group them.

Draw a hex poly oriented the same way, then copy the hex poly and paste the height onto the group (with preserve proportions checked).
2015-09-02-2.png
2015-09-02-2.png (70.93 KiB) Viewed 1244 times

Alternately, if you really want a pattern, use the hex pack and follow this tutorial http://www.silent9.com/blog/archives/14 ... scape.html

-Rob A>

User avatar
druban
Posts: 1570
Joined: Fri Nov 20, 2009 10:48 pm

Re: How do i inscribe circles in polygon with sides touching

Postby druban » Thu Sep 03, 2015 12:10 pm

bios wrote:I figure if there is a way to do it for one type of polygon then the same can be done for others as well.

This is not true at all. An equilateral triangle has a solution, and a regular hexagon has a solution. Tat's pretty much it for regular packing of circles into a polygon, although I suppose squares qualify too in that a single square can contain a circle, and a larger square or rectangle is an arrangement of squares etc. but even these can have random arrangements that are more efficient when the numbers are large.
Only polygons that can be tiled across a plane can be expected to have a regular packing solution. Everything else will have to be irregular in some way and usually unpredictable and hard to calculate.

When Lazur said, "There is no trivial solution for a random polygon," I think this is pretty much what he meant.
Your mind is what you think it is.

User avatar
ragstian
Posts: 1154
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How do i inscribe circles in polygon with sides touching

Postby ragstian » Fri Sep 04, 2015 4:10 pm

Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 5 guests