Inkscape.org
Tips, Tricks, and Tutorials Tutorial - How To Make A Reference "Tool" To Divide a Path Into X Number of Equally Distant Parts
  1. #1
    Hum Hum @Hum

    Method 1:

    These steps should work for any Shape, Arc, Line, or Curve used in Inkscape. Just be sure to convert the desired object into a Path first. This tutorial is to share a method to make a "Reference Tool" to potentially divide that Path into any desired number of equal distant parts. (That "Reference Tool" will be a set of vertical lines which can be that can be used for doing this.)

    [I have included below a graphic that shows some keys steps of this process, and a second graphic with 2 other Path examples.]

    I suggest you duplicate your original Path and set it aside. We will use your duplicated Path.

    Let's say you want to divide your Path into 7 equal distant parts. (That number could be 3, 8, 27 ... any number of desired parts you wish.)

    1 - Select that Path and on the keyboard,  press the CTRL Key and C at the same time. This will create a copy of it in the computer's memory.

    2 - Create a small rectangle. No stroke, only fill. I suggest you set the fill to a different distinctive color than that of your starting Path. Convert the rectangle to a Path (Path  > Object to Path).

    3 - With the same rectangle selected, go to the Edit Menu  and choose Paste Size and then Paste Size again. Now that rectangle has the same height and width of your starting Path. We will use this rectangle to get to our end goal.

    4 - Move the rectangle over to your starting Path. Press the END key to move it below your starting Path.

    5 - Select both the rectangle and the starting Path. Using Align and Distribute, align them both so they are centered on both the Horizontal and Vertical Axis. Remember, the rectangle should be below the starting Path.

    6 - Make a small circle. No stroke, only fill. I suggest you make this circle also a distinctive color that is different from your starting Path and is different than your rectangle's fill color. Convert it to a Path ( Path - Object to Path).

    7 - Duplicate this circle. You now have 2 circles.

    8 - Enable Snap to Paths. Then, enable Snap Centers of Objects. Move one circle to the top left corner of your rectangle. Make sure you snap its center to that upper left corner of the rectangle.

    (When positioned correctly, the screen will flash a small message showing "Object midpoint to path", letting you know it is snapped correctly.)

     Then move the 2nd circle to the top right corner of the rectangle. Snap its center there. Now each top corner of the rectangle has a circle centered over it. (These circles should be above the rectangles.)

    9 - Select the top row of circles together (The upper top left circle and the upper right circle).

    10 - Go to the Extensions Menu. Choose Generate from Path and then Interpolate.

    The Interpolate Box appears. Exponent should be set to 0. Interpolations Steps should be 1 number LESS than the desired number of equal distant parts. If you want 7 equal distant parts for your starting Path, set this Interpolation Steps to 6.

    The Interpolation Method should be 2. Do NOT check Duplicate Endpaths. Make sure both Interpolate Style and Use Z-Order are checked. Press the Apply button and then the Close button,

    11 - You should now see 8 circles. The leftmost circle should be centered over the top left corner of your rectangle. The rightmost circle should be centered over the top right corner of the rectangle. And in between are 6 circles. These innermost circles are a group.

    Select this entire horizontal row of circles. Duplicate it and drag that duplicated row so that it snaps to the lower right corner of your rectangle.

    You should now have 2 rows of circles. The topmost row covers the top left and the top right corners of the rectangle. The bottom row covers the bottom left and right corners of the rectangle.

    12 - Press B on the keyboard to select the Bezier Curves Tool.

    Look at the top row of circles. Focus on the 1st circle there. Use the Bezier Curves Tool draw a straight line from the center of that circle straight down to the 1st circle on the bottom row of circles.

    Continue this process of creating straight lines for each set of circles. From the 2nd circle on the top row to the 2nd circle on the bottom row draw a straight vertical line. Then from the 3rd circle on the top row to the 2nd circle on the bottom row draw a straight vertical line. And so on.

    When finished you should have 8 vertical lines that encompass the rectangle's width and your starting Path's width into 7 equally distant parts.

    You can use these vertical lines to slice and dice your starting Path if you wish.

     

    METHOD 2 - Using A Grid To Create a "Reference Tool " To Divide a Path Into X Number of Equally Distant Parts, both Horizontally and Vertically

    [I have included a graphic below that is titled Method 2 as an example of this method.]

    I suggest you duplicate your original Path and set it aside. We will use your duplicated Path.

    Let's say you want to divide your Path into 4 equal distant parts. (That number could be 3, 8, 27 ... any number of desired parts you wish.)

    Draw a rectangle. No stroke, just fill. Take the number of equal distant parts that you want - 4 in this case - and multiple it by 100. So 4 multiplied by 100 is 400.

    Make your rectangle that same width and height. In this case, 400 pixels by 400 pixels.

     I suggest you choose a color for the rectangle that is distinct then the color of your starting Path.

    Click on the rectangle.

    Open the Extensions Menu. Choose Render, then Grids and then Grid.

    The Grids Panel appears. Use the settings of:

    Line Width: 1

    Horizontal Spacing: 100

    Vertical Spacing: 100

    Horizontal Offset: 0

    Vertical Offset:0

    Click the Apply Button and then the Close button.

    .On the keyboard,  press the CTRL Key and C at the same time. This will create a copy of it in the computer's memory.

    Now click back on the Grid you just made. From the Edit Menu, choose Paste Size and then Paste Size again. Now the Grid will have the same width and height as your starting Path.

    Select your starting Path. Click END on the keyboard to move it lower than the Grid you made

    Select both your starting Path and the Grid.

    Using Align and Distribute, align them both so they are centered on both the Horizontal and Vertical Axis. Remember, the Grid should be above the starting Path.

    This Grid has the same number of equally distant lines both horizontally and vertically.

    You now have a Grid as a "Reference Tool" that can be used to slice and dice your starting Path.

    That's it. I hope these ideas help you.

    Ken

    Method 2
    Inkscape Tut 002 2
    Inkscape Tut 002 1
  2. #2
    Maren Hachmann Maren Hachmann @Moini

    I think this ended up in the wrong subforum. I'll try to move it to the Tutorials section.

Inkscape Inkscape.org Inkscape Forum Tips, Tricks, and Tutorials Tutorial - How To Make A Reference "Tool" To Divide a Path Into X Number of Equally Distant Parts