cart: empty [ Login ]

Straight line for DxfHatch.BoundaryPath.ArcEdge

1 
myzzard
10/12/2018 6:12 AM
Hi, I have a tool for applying hatching inside closed area I click. When the boundary includes DxfArc and the polygon is concave I can see unwanted straight line joining two arc points. Do I construct DxfHatch wrong? I have BoundaryPath including ArcEdge(s) and LineEdge(s). Filling is ok but this one line is annoying. Thanks for any help Mariusz P.S. I'm using version 4.0.36.46
ConcaveArcHatch.PNG
Wout
10/12/2018 8:36 AM
Will need code to reproduce. - Wout
myzzard
10/16/2018 1:26 PM
Hi, Preparing an example for you I realized that ArcEdge(s) and LineEdge(s) were not in the same direction. I mean they didn't make one chain connected from their start to end points. I added a method checking their direction and reverting LineEdge(s) if necessary and all edges order as well. It helped. Anyway thank you for trying to help me Mariusz
1