Inkscape.org
Beginners' Questions Unexpected "Corners" Live Path Effect for paths consisting of only straight line segments
  1. #1
    Johan Johan @johan_v

    If drawing a single straight line segment with the Pen tool (having only a start and end node), and adding a "Corners" Live Path Effect to that segment, then the segment is rendered as originating from the page origin instead of the drawn coordinates. The start node itself is still rendered at the drawn coordinates. For paths with more than 2 nodes, this does not happen.

    Context:

    • Source: Created in inkscape (no import)
    • OS: Win10 64bit fully updated,
    • Inkscape 1.3.2 (091e20e, 2023-11-25, custom) - upgraded from V1.2
    • MSi-installed
    • Hardware: nothing special, Laptop Lenovo P50 with 2 external monitors.

    Example: See attached.

    What to do?

    Capture2
    Drawing
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I hate to be the guy that says: "don't do that", but don't do that.

    It seems reasonable that the path effect will not work on a line that only has two nodes... how could it possibly have a corner? The path effect is similar to "fillet" in cad where two intersecting lines can be joined by a radius.

  3. #3
    Johan Johan @johan_v
    *

    @TylerDurden - thank you for responding to my post.

    I should add that in Inkscape V1.2, this unexpected (and undesired) behavior was not yet there. Instead, 2-node segments with Corners Live Path Effect (LPE) applied were rendered correctly. So, it seems that this behavior was introduced somewhere between versions 1.2 and 1.3.

    There are use cases (electrical wiring diagrams in my case) where a user starts out drawing 3-node (or more nodes) polyline paths and eventually decides to simplify them to straight 2-node paths. And maybe later, new iterations may lead the user to revert to a 3-node path again. It would be convenient and more code-robust if, like in V1.2, this would not require toggling (adding or removing) the Corners LPE at every such change (between 2-node path and 3-node path) to avoid the incorrect rendering. In addition, a user opening a drawing created in V1.2 with Inkscape V1.3 may find said unexpected results which the creator in V1.2 did not intend.

    I undestand that if the number of affected users is small, this improvement request get a low priority, but I would like to put it here on this forum for future reference for others too. I hope I described this issue in enough detail and with enough clarity.

     

  4. #4
    Polygon Polygon @Polygon🌶

    I don´t get CornerLPE with just 2 or more nodes on a straight line in Inkscape1.2 to do anything. As I expect to be honest; in which direction should it generate a curve? And why not use LPE Bend instead? Yes - end nodes won´t stay put in this case. Or simply drag with the node tool from anywhere on that straight line to make a curve?

  5. #5
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Bug reproduced here. As a workaround, use three collinear nodes instead of two nodes in your path.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Unexpected "Corners" Live Path Effect for paths consisting of only straight line segments