Menu

Offsetting a line

2016-11-15
2018-09-10
  • Roman Shuvalov

    Roman Shuvalov - 2016-11-15

    Greetings.

    Is it possible to offset a line? Not "to buffer" an open line, but just offset (shift) it? Like this:

    Line_Offset

    I can buffer it with rectangle endcap, then buffer it with butt endcap and increased factor, then intersect results and get two lines, one of which will be line I need. But maybe there is easier way?

     

    Last edit: Roman Shuvalov 2016-11-15
  • Richard Jones

    Richard Jones - 2018-02-07

    In the code there's a reference to etOpenSingle as an EndType that isn't implemented in the library:

    "etOpenSingle: Offsets an open path in a single direction. Planned for a future update."

    I think this is what would do the trick if it were implemented. I would also love this functionality and I noticed Clipper v2 is in development, so I thought I'd bump this in case it could be considered for implementation.

    Angus, is this possible in Clipper v2, or something you would consider implementing, as it was presumably on your mind at some point?

     
  • bgr

    bgr - 2018-09-10

    I'm also interested in having this feature.

     
Auth0 Logo