Rotate so edge is vertical

Post questions on how to use or achieve an effect in Inkscape.
Stavro Mueller
Posts: 1
Joined: Thu Apr 16, 2015 8:07 pm

Rotate so edge is vertical

Postby Stavro Mueller » Thu Apr 16, 2015 8:14 pm

This is my first question. I have tried the search and not managed to turn up exactly what I'm after, so here goes:

If I have a shape, any shape, or an image clipped with any shape (as long as the shape has at least one straight line segment): Is there an easy way to rotate the shape such that a chosen edge is vertical/horizontal?

I can obviously do this by inspection, but then I can't really be sure that I've got it perfectly aligned.

My actual situation is that I have clipped an image with a rectangle that is at an angle. Now I want to make the rectangle perfectly aligned with horizontal/vertical. I could go back and start with an aligned rectangle and rotate the image until it's at the right angle, but I feel like I ought to be able to do it this way round.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Rotate so edge is vertical

Postby tylerdurden » Thu Apr 16, 2015 9:16 pm

I would probably move the center of rotation to a corner and snap the corner to a guide. Then rotate the rectangle until another corner snaps to the guide.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

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

Re: Rotate so edge is vertical

Postby Lazur » Fri Apr 17, 2015 3:00 am

An "ugly" solution idea:

rectangles have their transformation values saved in the file. With the xml editor you can copy the transformation matrix,
which you need to make an inverse matrix of and apply it on the clipped object.

If only rotation was involved you can flip the clipped object, apply the rectangle's transformation matrix on the clipped (and mirrored) object, than flip it back.


Return to “Help with using Inkscape”