When I use the Polygon tool to draw a Hexagon and hold down the Ctrl key, it comes out perfectly aligned.
But if I use the tool to draw a Pentagon... its base is not horizontal, as I would like: it always comes out slightly inclined and I don't know how to fix that.
I just tested it and this also happens with the Heptagon, although I rarely use this polygon...
Sorry, forgot to mention the following: I use polygons as a basis for building patterns. I usually start by establishing a center with a horizontal guide and a vertical guide... and from that center I create the polygon, using the Shift+Ctrl key.
With hexagon and most polygons it works perfectly. But the pentagon...no.
• Tyler Durden: I tested it now by seeing your gif and... sometimes it comes out lined up, other times it doesn't. The worst thing is that it looks straight at the base, but when I zoom in, I see that there is a slight tilt.
Another try: I went to snapping (that option in the upper right corner of inscape1.2), in advanced mode and activated all the options there. It didn't.
• Paddy_CAD: In the first link it was suggested to change the degrees of rotation option to a number divisible by 5. This would not be feasible because most of the patterns I build are based on 3, 4, 8 and multiples of them. Few are based on 5 and 7, for example.
The second link, as I understand it, was for triangles, I couldn't think of a way to apply this to the pentagon...
suggested to change the degrees of rotation option to a number divisible by 5.
The first link used pentagons for illustration, but the method applies to all polygons. Set the rotation increment to any value that suits your design. 360/6 for hexagons, 360/8 for octagons, etc.
The second link, as I understand it, was for triangles,
The linked post describes describes aligning triangles but the method can be used to align any shapes with a straight side. Turn on the following snaps: Cusp nodes, Object rotation centres, and Grids. Move the rotation centre to a shape (polygon) vertex. Move the shape so that vertex snaps to a target guide line. Rotate the shape until the straight side snaps into alignment with the guide.
• Paddy_CAD: Would the first link solve one problem...but not create others? As I said, most polygons come out correctly, only the ones I use less (pentagon and heptagon) don't come out. If I change the rotation increment, as I understand it, it will affect all the others: so it doesn't seem viable to me...
The second link: I think it's risky to move the center of rotation, I only do it as a last resort, because any mistake affects the alignment of the pattern.
When I needed a pentagon I imported from a file, where I had drawn one, in an older version of Inkscape, from a circle and aligned lines, in the traditional method. It seems kind of weird, but the patterns came out correctly, when I traced them from the imported figure and converted into guides...
n.b.: Pathobject centers are based on the object bounding boxes. They are not always polygonal geometric centers, except for rare instances of rotation. Shapes, however, retain the expected centers, until converted to paths. After which, the object center will change, but the rotation center will not.
The rotation increment only applies when you use the [ctrl] key as you rotate. You can change it back to the default value (15 degrees) after you edit your shape. Existing shapes on the canvas are unaffected.
Shape alignment in Inkscape is based on the rectangular bounding box, not the rotation centre. Moving the rotation centre won't change the shape alignment.
Lastly, my advice may not work for your drawing but there's no risk in trying. You can undo any changes that you don't like, or make a copy of your drawing for experimenting.
When I use the Polygon tool to draw a Hexagon and hold down the Ctrl key, it comes out perfectly aligned.
But if I use the tool to draw a Pentagon... its base is not horizontal, as I would like: it always comes out slightly inclined and I don't know how to fix that.
I just tested it and this also happens with the Heptagon, although I rarely use this polygon...
These two topics should help you.
https://inkscape.org/forums/questions/keeping-a-pentagon-from-spinning/
https://inkscape.org/forums/questions/how-do-i-align-these-two-triangles-on-their-hypotenuse-and-in-the-bottom-in-general/
Also this:
Sorry, forgot to mention the following: I use polygons as a basis for building patterns. I usually start by establishing a center with a horizontal guide and a vertical guide... and from that center I create the polygon, using the Shift+Ctrl key.
With hexagon and most polygons it works perfectly. But the pentagon...no.
• Tyler Durden: I tested it now by seeing your gif and... sometimes it comes out lined up, other times it doesn't. The worst thing is that it looks straight at the base, but when I zoom in, I see that there is a slight tilt.
Another try: I went to snapping (that option in the upper right corner of inscape1.2), in advanced mode and activated all the options there. It didn't.
• Paddy_CAD: In the first link it was suggested to change the degrees of rotation option to a number divisible by 5. This would not be feasible because most of the patterns I build are based on 3, 4, 8 and multiples of them. Few are based on 5 and 7, for example.
The second link, as I understand it, was for triangles, I couldn't think of a way to apply this to the pentagon...
Having all the snaps on, can snap in the wrong places.
Looks bang-on here:
The first link used pentagons for illustration, but the method applies to all polygons. Set the rotation increment to any value that suits your design. 360/6 for hexagons, 360/8 for octagons, etc.
The linked post describes describes aligning triangles but the method can be used to align any shapes with a straight side. Turn on the following snaps: Cusp nodes, Object rotation centres, and Grids. Move the rotation centre to a shape (polygon) vertex. Move the shape so that vertex snaps to a target guide line. Rotate the shape until the straight side snaps into alignment with the guide.
• Paddy_CAD: Would the first link solve one problem...but not create others? As I said, most polygons come out correctly, only the ones I use less (pentagon and heptagon) don't come out. If I change the rotation increment, as I understand it, it will affect all the others: so it doesn't seem viable to me...
The second link: I think it's risky to move the center of rotation, I only do it as a last resort, because any mistake affects the alignment of the pattern.
When I needed a pentagon I imported from a file, where I had drawn one, in an older version of Inkscape, from a circle and aligned lines, in the traditional method. It seems kind of weird, but the patterns came out correctly, when I traced them from the imported figure and converted into guides...
n.b.: Path object centers are based on the object bounding boxes. They are not always polygonal geometric centers, except for rare instances of rotation. Shapes, however, retain the expected centers, until converted to paths. After which, the object center will change, but the rotation center will not.
The rotation increment only applies when you use the [ctrl] key as you rotate. You can change it back to the default value (15 degrees) after you edit your shape. Existing shapes on the canvas are unaffected.
Shape alignment in Inkscape is based on the rectangular bounding box, not the rotation centre. Moving the rotation centre won't change the shape alignment.
Lastly, my advice may not work for your drawing but there's no risk in trying. You can undo any changes that you don't like, or make a copy of your drawing for experimenting.
Hi! Tried to reply earlier, the forum was dropping to a "Bad gGateway" page...
Well, then I'll try to change this option, when using pentagons and heptagons.
Thank you for your help, Tyler and Paddy! :D