Closed SebKuzminsky closed 7 years ago
It's probably better to update Geometry.Polygon.is_connectable() to check the type of the object explicitly. Comments?
Great findings! It was surely quite a ride to track this problem down ...
I followed your advice and used the explicit type check in is_connectable
.
Could you please check if commit e5ac1baf1434f2913ca4847875003751f9f18f06 (on master) fixes the issue for you?
I have an unrelated problem with inkscape or pstoedit and thus cannot test it on my own. Thank you!
Thanks @sumpfralle for the much better fix in master. I cherry-picked it into stable/0.6.
NOTE: This PR is for the new "stable/0.6" branch, because it addresses a bug in that branch. If this PR is accepted, I will merge the bug fix into the master branch so it gets fixed there too.
This function was removed in commit 52b80196 "removed unused code (reported by 'vulture')", but it is actually used by pycam.Geometry.Polygon.is_connectable(). vulture just missed it.
You can see the problem that arises when this function is missing by following this recipe:
Before this commit (but after 52b80196), pycam fails to produce a sensible toolpath. After this commit, the correct toolpath is generated.