You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Earlier while doing some testing on the test files in the libredwg github repo, there was a file with a polyline that had 2 points, but a bulge defined, and it was closed, which made it look like a circle. (although in QCade deleting the buldge made it looks like a semi-circle).
I need to look into how this bulge works, and how to properly convert that to a polyline. Right now my logic looks at it and says it's a 2 point polyline, convert it to a normal line, and it straight and flat, but that's wrong. It looks like the original logic from Antonioaja didn't handle this either, I checked using version 0.3.0, and it ends up a polygon with 2 points, but still a straight line.
I guess the tricky part is going to be how do I represent this? Polygon's in QElectrotech can't be curved...I would need to try and segments it into multiple small lines, or try and represent it with arcs...which mathematically could get tricky, and you might end up with multiple arcs to create a shape that was a single polyline.
I think for now I will close this as wontfix. QET Elements and DXF files are going to have their differences, we can't possibly support all DXF features, take 3D DXF's for example. we can't make a 3d QET element, nor would it really make sense.
I'm not sure how used this bulge feature is, I had never even heard of it or come across it until I found this test file. For now I'm closing this, but if later down the road this starts causing some problems, or people submit DXFs that fail to convert correctly due to bulges, I'll reopen this issue.
Earlier while doing some testing on the test files in the libredwg github repo, there was a file with a polyline that had 2 points, but a bulge defined, and it was closed, which made it look like a circle. (although in QCade deleting the buldge made it looks like a semi-circle).
I need to look into how this bulge works, and how to properly convert that to a polyline. Right now my logic looks at it and says it's a 2 point polyline, convert it to a normal line, and it straight and flat, but that's wrong. It looks like the original logic from Antonioaja didn't handle this either, I checked using version 0.3.0, and it ends up a polygon with 2 points, but still a straight line.
I guess the tricky part is going to be how do I represent this? Polygon's in QElectrotech can't be curved...I would need to try and segments it into multiple small lines, or try and represent it with arcs...which mathematically could get tricky, and you might end up with multiple arcs to create a shape that was a single polyline.
Donut.zip
The text was updated successfully, but these errors were encountered: