How to resize a rectangle diagonally..

Post questions on how to use or achieve an effect in Inkscape.
Virt
Posts: 20
Joined: Sun May 23, 2010 9:15 am

How to resize a rectangle diagonally..

Postby Virt » Fri Dec 27, 2013 6:38 am

Hi,

I was wondering how to resize a rectangle diagonally.
Without making it bigger, but just longer..
and not scaling the whole thing, but just increasing the length.


Kind regards,
Virt
Attachments
example.png
example.png (10.24 KiB) Viewed 2361 times

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

Re: How to resize a rectangle diagonally..

Postby Lazur » Fri Dec 27, 2013 7:51 am

Hi.

You can use a 2 node open path with no fill but outline, and butt caps, to draw such a rectangle.
Then you can edit it with the node editor tool to be diagonal, or,
with the select tool if the scale stroke width with the path option is disabled.

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

Re: How to resize a rectangle diagonally..

Postby druban » Fri Dec 27, 2013 6:17 pm

The rectangle tool should give you the true dimensions of the rectangle to resize in length or width no matter the orientation
Your mind is what you think it is.

Virt
Posts: 20
Joined: Sun May 23, 2010 9:15 am

Re: How to resize a rectangle diagonally..

Postby Virt » Mon Dec 30, 2013 5:41 pm

Lazur URH wrote:Hi.

You can use a 2 node open path with no fill but outline, and butt caps, to draw such a rectangle.
Then you can edit it with the node editor tool to be diagonal, or,
with the select tool if the scale stroke width with the path option is disabled.



Thanks!

Virt
Posts: 20
Joined: Sun May 23, 2010 9:15 am

Re: How to resize a rectangle diagonally..

Postby Virt » Mon Dec 30, 2013 5:42 pm

druban wrote:The rectangle tool should give you the true dimensions of the rectangle to resize in length or width no matter the orientation


Yeah, so increasing it there would only increase length?

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

Re: How to resize a rectangle diagonally..

Postby Lazur » Mon Dec 30, 2013 6:58 pm

If you are not in object select mode but in the rectangle's toolbar, you can use the handles to change the length in a fixed direction, however you would need a parallel guideline to snap one of the corners
-or the exact width cannot be kept.

Virt
Posts: 20
Joined: Sun May 23, 2010 9:15 am

Re: How to resize a rectangle diagonally..

Postby Virt » Wed Jan 01, 2014 9:34 am

Lazur URH wrote:If you are not in object select mode but in the rectangle's toolbar, you can use the handles to change the length in a fixed direction, however you would need a parallel guideline to snap one of the corners
-or the exact width cannot be kept.


Thanks for helping out.
I got it now. ;)

Cheers and a happy new year to you all!

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

Re: How to resize a rectangle diagonally..

Postby Lazur » Wed Jan 01, 2014 1:35 pm

Cheers and happy new year in design!

Polygon
Posts: 304
Joined: Thu Dec 19, 2013 3:27 am

Re: How to resize a rectangle diagonally..

Postby Polygon » Thu Jan 02, 2014 12:36 am

I´d go with user druban - select rectangle with :tool_rectangle: rectangle tool and type in the new "H:" (height) - that´s it.
Or use the node tool with ctrl+alt keys down:
Extend.gif
Extend.gif (140.44 KiB) Viewed 201 times


Cheers
P.
Last edited by Polygon on Mon Jul 30, 2018 8:49 pm, edited 1 time in total.

Fluxrider
Posts: 1
Joined: Mon Jul 30, 2018 1:14 am

Re: How to resize a rectangle diagonally..

Postby Fluxrider » Mon Jul 30, 2018 3:45 am

To resize or extend a rectangle diagonally, I can offer three alternate methods.

1) One method is to combine multiple instances of your rotated rectangle.
Duplicate your rectangle, and move it along the direction of the length as far as desired.
Zooming in to do the move will help you align the rectangles better by eye.
Now you can change them to paths (Path menu > Object to Path) and then do Path > Union.
Once you've united the two rectangle paths, you can click on the Path Nodes tool, and remove the four nodes that are now along the sides of the Union Path. (If you have aligned them well, you will probably only see six nodes, because the nodes along the sides will be in the same places, on top of each other. Click on a side node, hit Delete, then click on the node below that and delete it as well.)
Alternatively, if you are satisfied with the alignment of your rectangles, and don't want a path, you can just Group the objects (Objects menu > Group)
Downside: Unless you are extending the rectangle by an exact multiple (like twice as long), there will be no snap options to use, and you have to align the rectangles by eye. This is actually my least favorite of the three options.

Method 2) Select your diagonal rectangle and change it to a path; Path menu > Object to Path.
Now click the Path Nodes tool to see the path nodes.
With the Path Nodes tool still active, drag a rectangle around the two nodes you want to extend, to select them.
Ctrl-Alt-drag them out in approximately the direction of extension.
(The Ctrl-Alt constrains the direction to be in the same direction as the rectangle path.)
Downside: The only downside I've found is that (reportedly) Ctrl-Alt-dragging the two nodes in version 0.48 does not work the same way. It does reportedly work in 0.47, and in 0.92 it works.

Bonus notes for method 2) If you Ctrl-Alt-drag your rectangle path significantly to the side rather than in the direction of extension, you can get a curved "rectangle", like an "S".
Also, if you change an unrotated rectangle to a path, and then Ctrl-Alt-drag two end nodes to the side, it is an easy and predictable way to create slanted parallelograms.

3) This one is possibly my favorite. In this one we specifically do NOT change it to a path.
With the rotated rectangle object selected, click on the Path Nodes tool or the Rectangle tool to show the rectangle controls.
There are two square handles and two round handles, although the round handles are typically on top of each other.
(To see the second round handle you can drag the visible one toward the center of the rectangle, and it will slide along one side, revealing the round handle that was beneath it.)
Ctrl-drag a square handle out in the direction you want to extend the rectangle.
The Ctrl option makes it easy to keep the rectangle from changing in the "width" direction.

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

Re: How to resize a rectangle diagonally..

Postby druban » Mon Jul 30, 2018 7:10 pm

Necromancer rolls a 16!!
I guess this means at least two more seasons of The Walking Dead and probably another spinoff series.

image.jpg
image.jpg (42.48 KiB) Viewed 213 times


It's a long first post so I am going to assume not a robot. Speak, friend, and enter.
Your mind is what you think it is.


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 15 guests