How to get equally spaced points on a curve?

Post questions on how to use or achieve an effect in Inkscape.
Brezn
Posts: 2
Joined: Fri Mar 11, 2016 11:18 pm

How to get equally spaced points on a curve?

Postby Brezn » Fri Mar 11, 2016 11:27 pm

Hi Forum,

I'm new to Inkscape so I am not sure if this is possible. What I am trying to do is to equally divide a path so that every distance between the new curve control points is equal. For a bettern understanding:

Image

In the upper case, in Illustrator there is a function called "Add Anchor" which inserts one new control point between the existing ones. That's not what I need. I need an equally divided curve like the one in the lower corner.

Image



Is this possible with Inkscape?

Thanks in advance.

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

Re: How to get equally spaced points on a curve?

Postby Lazur » Fri Mar 11, 2016 11:32 pm

Welcome aboard!

Check the add nodes extension.

Brezn
Posts: 2
Joined: Fri Mar 11, 2016 11:18 pm

Re: How to get equally spaced points on a curve?

Postby Brezn » Fri Mar 11, 2016 11:40 pm

Ah, perfect. Thanks!

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How to get equally spaced points on a curve?

Postby Espermaschine » Sat Mar 12, 2016 12:19 am

Lazur URH wrote:Welcome aboard!

Check the add nodes extension.

That doesnt divide the path into equal parts.

For example if i have a straight path with two nodes, and insert a third node at a random place, then apply the Add Nodes extension, with the Division Method set to 'By Number Of Segments', i get this:
Attachments
Divided.png
Divided.png (2.81 KiB) Viewed 2427 times

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

Re: How to get equally spaced points on a curve?

Postby Lazur » Sat Mar 12, 2016 12:55 am

Other option is "by max. segment length".
Close enough I guess, depending on the needs.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How to get equally spaced points on a curve?

Postby Espermaschine » Sat Mar 12, 2016 1:09 am

:?

This doesnt take the path as a whole and divide it into equal parts.

Perhaps the Stitch Subpaths LPE could be used as an aid ?
Attachments
Nope.png
Nope.png (14.38 KiB) Viewed 2412 times

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

Re: How to get equally spaced points on a curve?

Postby Lazur » Sat Mar 12, 2016 1:20 am

Other option is using the ruler lpe although it doesn't divides the core path as per se.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How to get equally spaced points on a curve?

Postby Espermaschine » Sat Mar 12, 2016 1:26 am

Espermaschine wrote:Perhaps the Stitch Subpaths LPE could be used as an aid ?

Stitch-Subpath LPE used to Cut Path.

Im not sure if these segments are of equal length...
Attachments
Stitch.png
Stitch.png (26.82 KiB) Viewed 2405 times

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

Re: How to get equally spaced points on a curve?

Postby Lazur » Sat Mar 12, 2016 1:33 am

Espermaschine wrote:Perhaps the Stitch Subpaths LPE could be used as an aid ?


If the path is closed it wouldn't work.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How to get equally spaced points on a curve?

Postby Espermaschine » Sat Mar 12, 2016 1:37 am

Lazur URH wrote:If the path is closed it wouldn't work.

Well im thinking i might need this technique for building things that need interconnections.
A circle could be easily divided with a sunburst. A rectangle split into segments.
But yeah, an ellipse is a problem..
Pattern along path with a square might be a solution, hmmm....

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

Re: How to get equally spaced points on a curve?

Postby Lazur » Sat Mar 12, 2016 1:49 am

Doesn't the pattern along path lpe preserve nodes of the original path not in equal distances to eachother?

Unlike the ruler lpe.
Which doesn't preserve the shape as precise nor can be stitched back to a single path in an easy way.
(Testing it.)


Lazur URH wrote:If the path is closed it wouldn't work.

And if concave? Hmm how can it be described.
The generated cutting paths may divide the core path more than once each.

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

Re: How to get equally spaced points on a curve?

Postby tylerdurden » Sat Mar 12, 2016 11:16 am

How about something like this?
2016-03-11_20-14-25.png
2016-03-11_20-14-25.png (93.46 KiB) Viewed 2339 times
Attachments
cutPathEven.svg
(33.96 KiB) Downloaded 266 times
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/

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How to get equally spaced points on a curve?

Postby Espermaschine » Sat Mar 12, 2016 11:31 am

tylerdurden wrote:How about something like this?

Neat !

For some reason it doesnt work for me with the LPE...


Return to “Help with using Inkscape”