Inkscape.org
Beginners' Questions How to create a polygon with specified edge length?
  1. #1
    ia ia @ia

    Hello, I want to create a pentagon where its edges are 3 cm in length. Unfortunately, it seems like the Polygon Tool does not provide an obvious way to specify the length of its edges. I couldn't find any mention of it in the manual or tutorial either, unless I missed it somewhere. Is there a way to do this or a workaround for it? Thank you in advance.

    Details:

    • Inkscape version: AppImage 1.3.2 (091e20e, 2023-11-25)
    • Operating system: Debian Unstable
  2. #2
    Polygon Polygon @Polygonβš–πŸŒΆ

    I'd use a helper object let it be a 3cm line or 3x3cm square and let the pentagon's bottom snap to it - delete helper afterwards.

  3. #3
    ia ia @ia

    Thanks for the answer! I thought I couldn't do that since the object would move around when being resized, apparently I just need to keep resizing and snapping until the length is correct. I ended up with doing it manually: creating the lines, rotating them to form a pentagon, and joining the nodes together.

  4. #4
    Aero Aero @Aero◻️

    Use the polygon tool. With your pentagon still selected after drawing it, open the XML-editor.

    Change the value of sodipodi:r1 to 25.52 and hit enter. (I'm assuming your document is default mm)

    https://www.omnicalculator.com/math/pentagon
    Β 

  5. #5
    Tyler Durden Tyler Durden @TylerDurdenβš–
    *

    Maybe this:

    Β 

    For even-sided polygons, A horizontal guide can be added.

    Β 

  6. #6
    Polygon Polygon @Polygonβš–πŸŒΆ
    πŸ‘

    This extension does exactly what you want:Β https://inkscape.org/~inklinea/β˜…polygon-side

  7. #7
    ia ia @ia

    Thanks again for the answers! The extension you mentioned is very useful.

  8. #8
    Paddy_CAD Paddy_CAD @Paddy_CAD
    πŸ‘

    I'm late to the party, but here's how I do it.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions How to create a polygon with specified edge length?