Menu

#13 Offsetting open shapes with self intersecting lines

1.0
closed
nobody
None
2022-11-03
2016-10-07
Anonymous
No

I have data sets that consist of all open shapes that can contain self intersecting lines. What I mean by that is the following image.

The line goes from 0 to 1 to 2. But point 2 is on line 0-1 so the line 1-2 is overlapping 0-1. Offsetting this shape leads to some unexpected results. I have created an esbin example to demonstrate this.

https://esnextb.in/?gist=69f090e0f01c6a7a05a00ebd9d7987d9

Perhaps this behaviour by design, but I could really use a way to get around this problem.

Discussion

  • Casper Lamboo

    Casper Lamboo - 2016-12-12

    Hi Timo, I'm sorry this issue was a mistake on my part. The npm clone of this project was I few versions behind, they just recently updated it. When I updated it it worked. Thanks for the response!

     
  • Timo Kähkönen

    Timo Kähkönen - 2017-09-03
    • status: open --> closed
     
  • cuixiping

    cuixiping - 2022-11-03

    I also replicated this issue with the latest 6.4.2

    My testing data is:

    [[0,0, 10,0, 6,4, 10,0, 6,-4, 10,0]]

    Offsetting delta is 1.000

    Expected solution is an arrow shape, but a horizontal line actually.

     

    Last edit: cuixiping 2022-11-03

Log in to post a comment.