How do I make a rectangle which bend at a precise angle ?

Post questions on how to use or achieve an effect in Inkscape.
Viking72
Posts: 9
Joined: Sat May 21, 2011 11:44 pm
Location: Denmark

How do I make a rectangle which bend at a precise angle ?

Postby Viking72 » Sun Mar 17, 2013 11:58 am

Hi

The headline almost says it all:

How do I make a rectangle which bend at a precise angle ?

To be more precise I want the curvature of the rectangle to be for example 30 deg. along its whole length.

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: How do I make a rectangle which bend at a precise angle

Postby Grobe » Sun Mar 17, 2013 11:30 pm

Hi.

Simplest way must be to use a guide.

Double click at the guide and you can place it in a precise angle.

Then move it to the middle point where you wish the point (node) being bend around from.
:lol:

Viking72
Posts: 9
Joined: Sat May 21, 2011 11:44 pm
Location: Denmark

Re: How do I make a rectangle which bend at a precise angle

Postby Viking72 » Sun Mar 17, 2013 11:49 pm

Grobe wrote:Hi.

Simplest way must be to use a guide.

Double click at the guide and you can place it in a precise angle.

Then move it to the middle point where you wish the point (node) being bend around from.


Hi

Thank you for replying.

I consider myself as pretty much a newbie to Inkscape and therefore I'm afraid that the help and direction you have been given doesn't make much sense to me :oops:

rich2005
Posts: 55
Joined: Fri Mar 30, 2012 9:06 pm

Re: How do I make a rectangle which bend at a precise angle

Postby rich2005 » Mon Mar 18, 2013 6:48 am

What it means is

You can set guides to precise angles, hover the mouse over and the guide chages colour, click to get a dialog.

Then you can create a rectangle, center it up on the quides.
Convert to a path and use the path effect editor to bend the rectangle keeping all symetrical with the guides.

Here are some screenshots of the above

http://i.imgur.com/2c25KMy.jpg

Sorry if this is a bit sketchy, using a little netbook at the moment, not the best in the world for graphics.

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

Re: How do I make a rectangle which bend at a precise angle

Postby Lazur » Mon Mar 18, 2013 8:21 am

Interesting question.
Not that if a rectangle is bent on a circle bends 90 degrees in every part of it, but the fact how bezier curves handle the curvatures of them.
I would be happy if inkscape could display the curvature of paths in a way, making drawing a less intuitive process.

But for this specific need, there is an extension built in, the pattern along path.
That may do the job for you.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How do I make a rectangle which bend at a precise angle

Postby brynn » Mon Mar 18, 2013 10:32 am

Yes, without knowing exactly what you mean by "bend a rectangle" I would have to suggest Pattern Along Path as well. However, you'd have to also be able to bend a simple path at a precise angle. And I'm just not getting what you mean by "bend". Will this be a sharp bend, like a sharp corner? Or will it be a gentle bend, like in a river?

Viking72
Posts: 9
Joined: Sat May 21, 2011 11:44 pm
Location: Denmark

Re: How do I make a rectangle which bend at a precise angle

Postby Viking72 » Mon Mar 18, 2013 12:26 pm

brynn wrote:Yes, without knowing exactly what you mean by "bend a rectangle" I would have to suggest Pattern Along Path as well. However, you'd have to also be able to bend a simple path at a precise angle. And I'm just not getting what you mean by "bend". Will this be a sharp bend, like a sharp corner? Or will it be a gentle bend, like in a river?


Yes you could say gentle bend like a river - no sharp corners !.

I would like that the curvature of the rectangle to be 30 deg. along the lenght

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How do I make a rectangle which bend at a precise angle

Postby ragstian » Mon Mar 18, 2013 2:32 pm

Hi.

Relatively easy, however you will have to learn how to create and rotate guides, use snapping etc. http://tavmjong.free.fr/INKSCAPE/MANUAL ... pping.html
One of possibly many ways of creating this:
1. Draw a rectangle - M
2. Duplicate and rotate (here 30°- can be any angle you desire) -result; Rectangle N
3. Drag a guide and snap to point A. ( Guide 1 ).
4. Drag a guide and snap to point B, rotate the guide and snap to point b. Intersection point C are center of arcs. ( Guide 2 - Guide 3 added to verify Guide 1 & 2)
5. Create closed Arc (Circle tool) - (Here Start 270° - End 300°). Snap to point C and A.
6. Repeat 5, snap to C and a.
7. Select Both Arcs and do a path difference.
8. Duplicate Arc segment and rectangle M - Do a path difference.
9. Duplicate Arc segment and rectangle N - Do a path difference.
10. Select all and do a Path - Break apart.
11. Delete "unwanted" part of M and N.
12. Select the two remaining parts of the rectangles and the arc segment - Do a path union.
See illustration below.

Image
Click Image for larger version.

Good Luck
RGDS
Ragnar
Attachments
Bent_Rectangle.svg
(32.12 KiB) Downloaded 216 times
Last edited by ragstian on Tue Mar 19, 2013 2:10 pm, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How do I make a rectangle which bend at a precise angle

Postby ragstian » Tue Mar 19, 2013 2:03 pm

Hi.

Another method where you can select the "bend radius" - here denoted by circle 'r".

Image
Click Image for larger version.

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How do I make a rectangle which bend at a precise angle

Postby brynn » Wed Mar 20, 2013 5:13 am

Nice work, Ragnar! I hope it helps Viking72 :D

Viking72
Posts: 9
Joined: Sat May 21, 2011 11:44 pm
Location: Denmark

Re: How do I make a rectangle which bend at a precise angle

Postby Viking72 » Wed Mar 20, 2013 6:58 am

Hi

Thank you for all the help, however, I think you may have misunderstood me a little. I blame this on the headline I made for my initial post :oops:

This is what I had in mind:

Image

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

Re: How do I make a rectangle which bend at a precise angle

Postby Lazur » Wed Mar 20, 2013 7:13 am

To draw such thing precisely you have to construct a filled path, some ways are described above.
With pattern along path extension you can bend a rectangle-shaped path along another path that bends as you want it, but still you have to draw that from scratch.
By the way, if you want to bend the rectangle until one paralell pair of sides are in 30° to each, the degree parameter wouldn't be enough, someway the radius or the length of the arch needed to be set.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How do I make a rectangle which bend at a precise angle

Postby ragstian » Wed Mar 20, 2013 7:16 am

Hi.
Thank you for all the help, however, I think you may have misunderstood me a little.

(Maybe it's the other way around - you have asked an "incorrect" question, it's called an arc - not a bent rectangle :) )

Even easier!

Make two closed arcs with same center - one with smaller radius than the other - you can specify the start and end angle.
Select both arcs and do a path difference.

Image

Good Luck
RGDS
Ragnar
Last edited by ragstian on Wed Mar 20, 2013 10:42 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How do I make a rectangle which bend at a precise angle

Postby brynn » Wed Mar 20, 2013 7:34 am

Viking72 wrote:Hi

Thank you for all the help, however, I think you may have misunderstood me a little. I blame this on the headline I made for my initial post :oops:

This is what I had in mind:

Image


That's exactly what Ragnar gave instructions for -- now 3 different ways to do it! And that's not to mention Lazur URH and rich2005, also Grobe :D


Return to “Help with using Inkscape”