Outline from line/curve

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Heliooos
Posts: 11
Joined: Tue Dec 23, 2008 4:34 pm

Outline from line/curve

Postby Heliooos » Wed Mar 02, 2011 5:56 pm

Hi,
is there some easy way to achieve effect like this:
inkscape_test.png
inkscape_test.png (2.04 KiB) Viewed 4078 times

(this was created manually)

I have a line or curve and need to create something like envelope curve around my line in some constant distance from my curve. I tried various effects and extension but I am still unable to do, what I need.

any advice would be nice

thanks :roll:

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

Re: Outline from line/curve

Postby druban » Thu Mar 03, 2011 4:14 am

path3845.png
path3845.png (1.77 KiB) Viewed 4045 times


This was done so:
1. Create a line - stroke, no fill, butt cap (not a clothing item!)
2. Duplicate (ctrl+d) and send to back, leave selected.
3. Change cap style to square. Increase stroke width as desired.
4. Stroke to path, change fill colour and give it a stroke (good dog!) as desired.

path3853.png
path3853.png (10.67 KiB) Viewed 4045 times


Works with curves as well, and, if you want round corners you can choose that option - as well as round caps - in the f/s dialog BEFORE doing the stroke to path.
Last edited by druban on Fri Mar 04, 2011 3:31 am, edited 1 time in total.
Your mind is what you think it is.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: Outline from line/curve

Postby RobA » Thu Mar 03, 2011 12:21 pm

You can do it with clones, too, and the clones will follow the original line.

Draw a line and set it's fill to none and stroke to unset. (it will disappear)
While selected do Edit->Clone->Create Clone and set its stroke to black, width to whatever you want (this makes the outer outline) say 10px and cap to square.
Select the original with shift-D
While selected do Edit->Clone->Create Clone and set its stroke to yellow, width two pixels smaller (this makes the yellow line)to get a 1 px black outline.
Select the original with shift-D
While selected do Edit->Clone->Create Clone and set its stroke to black, width two pixels (this makes the center line).

You can edit the line by clicking on any of the objects then shift D to get the original then edit it with the node tool.

-Rob A>

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Outline from line/curve

Postby llogg » Thu Mar 03, 2011 3:15 pm

A little less precise, but Linked Offset would do it as well.
1. Draw curve or line. Convert stroke to path.
2. Path>Linked Offset, adjust to desired width and stroke/fill colors.

If you adjust the original path shape the offset will automatically adjust as well, but since you changed the original stroke to path you will probably need to grab two nodes at once to modify the original path.

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

Re: Outline from line/curve

Postby brynn » Wed Mar 09, 2011 12:47 pm

(this was created manually)

I have a line or curve and need to create something like envelope curve around my line in some constant distance from my curve. I tried various effects and extension but I am still unable to do, what I need.

I'm not aware of an extension or filter that will do this automatically. But you could search the internet, because many are written which aren't included in the program. However I suspect that none exist :(

Why is it that you need this done via filter or extension? If you could describe your project, maybe we could come up with another way to meet your needs?

Edit
Unless maybe Extrude??? (Extensions > Generate from Path > Extrude). Oh great, of course Inkscape crashed when I tried to experiment. I will return with results.
Or maybe try your hand with Filter Editor??

User avatar
Heliooos
Posts: 11
Joined: Tue Dec 23, 2008 4:34 pm

Re: Outline from line/curve

Postby Heliooos » Wed Mar 09, 2011 4:44 pm

brynn wrote:Why is it that you need this done via filter or extension? If you could describe your project, maybe we could come up with another way to meet your needs?


Thanks for reply,
in fact I am trying to make my graphs more attractive (I create them in Scidavis and then export to SVG) and convert the graph polylines to tube like structure. I created it once manually and it had a big success so I was asked to make it again. It is graph for just a global overview of the variable behavior so I do not need to be highly exact.

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

Re: Outline from line/curve

Postby brynn » Wed Mar 09, 2011 10:30 pm

Aaaah....hhhhm....Image
Unfortunately, I think you may be stuck with "manually". Hopefully the suggestions presented by the other responders can help speed it up some. OH! Well you could probably get some interesting results with filters, but not exactly like your example....well, unless you made your own filter....Image
What about a tube or cord-like appearance? Here's a short tutorial from the Inkscape website: http://inkscape.org/screenshots/gallery ... D-rope.png.

Oh wait -- could this be done with pattern along path? It seems to me that it should, but I can't seem to get it to work. I always have trouble with pattern along path, and haven't learned yet what throws me off. But it seems to me that it should be possible??? Yes? No?

Oh, and another idea -- markers?

Watch out -- throwing ideas around! Image


Return to “Help with using Inkscape”