Open Wasupmacuz opened 5 months ago
Thank you for the Report! , finding a starting point is a tricky problem with the edge cases…
@nicolai-wachenschwan My initial speculation was incorrect. The bug actually had to do with the logic in the makeGeometryFromGCode
function. Would you like me to submit another pull request that fixes this issue as well as #56? Or should I wait until you've had the chance to look over my first pull request for #56?
I tested this fix, it works for me. Thanks for posting!
The post-processing script outputs this:
and changed this bridging: into a hole like this: This is happening because the external perimeter is a line and doesn't contain enough points to make a polygon. The
makePolygonFromGCode
function returnsNone
, due to this. Following this, themakeExternalPerimeter2Polys
function does not update theself.extPerimeterPolys
list, causing themakeStartLineString
function to returnNone, None
. When this occurs, arc generation skips the current polygon, leaving a hole. I haven't looked into a fix yet.