Is it possible to divide a path into an odd number of equally sized paths? Say, you just added a straight line (using the Bézier tool). And then you would like to divide it into 3 or 5 equal parts. What ways are there to accomplish this?
Dividing a path into an even number of paths is simple, just select all the nodes and choose "Insert New Nodes".
Divide a path into an odd number of equally sized paths
Re: Divide a path into an odd number of equally sized paths
This is the easier way I can think of. It's not very efficient and I think there should be some other way that I don't know about. But...
1) Draw a, say, vertical line with the
. Tall enough to "cut" your path with it (hold Ctrl to keep it straight).
2) Go to the Align and distribute dialog and select "align right edges of objects to the left edge of the anchor". The idea is that your cutting line will be "glued" to your path from the left (or right).
2) Draw another line and do the same, choosing to align to the right edge this time.
3) Now you have two lines on both sides of the shape you want to "slice". Create some more lines and place them between the first two.
4) Select all the lines and go to the Align and Distribute dialog and select "distribute centers equidistantly horizontally" (or vertically depending on your drawing).

5) Now you have a bunch of lines all evenly spaced on top of your shape. And now the part that's not so efficient.
6) Select the second right-most line and your shape and do a Path > Cut Path. You end up with the shape sliced in two, but it is an open path. And that's the problem, you'll have to go and edit both parts with
and close it by selecting both nodes on the open end and do a "Join selected end nodes with a new segment". Remember, you have to do this for both your left part and your right part, otherwise when you do a Path > Cut with the next line, it's not going to work.

That's the "simplest" approach I came with... yes.
Hope it helps.
1) Draw a, say, vertical line with the

2) Go to the Align and distribute dialog and select "align right edges of objects to the left edge of the anchor". The idea is that your cutting line will be "glued" to your path from the left (or right).
2) Draw another line and do the same, choosing to align to the right edge this time.
3) Now you have two lines on both sides of the shape you want to "slice". Create some more lines and place them between the first two.
4) Select all the lines and go to the Align and Distribute dialog and select "distribute centers equidistantly horizontally" (or vertically depending on your drawing).

5) Now you have a bunch of lines all evenly spaced on top of your shape. And now the part that's not so efficient.
6) Select the second right-most line and your shape and do a Path > Cut Path. You end up with the shape sliced in two, but it is an open path. And that's the problem, you'll have to go and edit both parts with


That's the "simplest" approach I came with... yes.

Hope it helps.
Re: Divide a path into an odd number of equally sized paths
not sure i understand fully...but would it work to go the other way, as in create tiled clones to build up a "broken line" of desired number of segments, instead of trying to cut up a long line into segments?
Re: Divide a path into an odd number of equally sized paths
How about dividing into an even number that is one greater than the number of odd segments you need, then deleting the last (or first) node. Finally use the transform handles to scale the whole path to the length that you wanted. This approach should work for the case of dividing a straight line, but probably won't be much use if your requirement is for a more general solution for complex paths.
Re: Divide a path into an odd number of equally sized paths
This solution might well be too much work, and also perhaps not what the original poster wanted to accomplish anyway!
Your mind is what you think it is.
Re: Divide a path into an odd number of equally sized paths
Ailurus wrote:Is it possible to divide a path into an odd number of equally sized paths? Say, you just added a straight line (using the Bézier tool). And then you would like to divide it into 3 or 5 equal parts. What ways are there to accomplish this?
Dividing a path into an even number of paths is simple, just select all the nodes and choose "Insert New Nodes".
For straight lines (one straight segment, only two nodes), you could use this extension:
- Extensions > Modify Path > Add Nodes … > Division method: [x] By number of segments
Re: Divide a path into an odd number of equally sized paths
Wow, thanks for the nice solutions everyone. Much appreciated 
