# How to z-rotate a rectangle in perspective using inskcape?

## How to z-rotate a rectangle in perspective using inskcape?

### Question

I have managed to draw a limited perspective sketch in Inkscape. My aim is to add rectangles in perspective (like the black one already in the picture) but rotating on the z axis (xy plane) to illustrate that this figure moves along a pivot that runs along this axis. The rotation should be from the intersection with the axis, so Iâ€™ve tried to move the rotation center and then rotate the object but itâ€™s not producing the desired result.

Here is a PNG of my sketch:

### Accepted Answer

Create something like this:

The black lines on the left are your axes. The cyan object on the left is a perfect rhombus that is parallel to your bottom axes. The red object on the right is a perfect square. The rectangles on the right are what I understand that you want to put into perspective with the black spot marking the intersection of the axes.

Apply

*pathâ€¯â†’â€¯object to path*to all objects in the right half.- Group all objects in the right half.
Select the group and then the rhombus. Apply

*extensionsâ€¯â†’â€¯modify pathâ€¯â†’â€¯perspective.*You should get something like this:Remove the red and cyan rhombus.

Align the transformed rectangles on the vertical axis using the black dot: