Andrey Zabolotnyi wants to merge 3 commits from /u/andyz/dxf2gcode/ to develop, 2020-02-04
This merge provides fixes for two bugs:
1. On some geometries creating a ShapeOffset (e.g. with G41 or G42) would fail. This happens due to Arc.dif_ang returning 2*pi (full circle) instead of 0, which is not what ShapeOffset expects.
2. Import of LWPOLYLINE shapes with bulges was wrong. The bulge was attributed to the wrong segment, and the import result was looking ugly.
Commit | Date | |
---|---|---|
[3737ba]
by
![]() Fixed bug in LWPOLYLINE shape loading. Bulges were wrongly attributed to the segment that was preceeding the really "bulged" segment. |
2020-02-02 21:55:18 | Tree |
[b02bb5]
by
![]() Fixed a bug in ShapeOffset class that would refuse in some case to create a offset shape. |
2020-02-02 20:01:44 | Tree |
[34670f]
by
![]() More conversions of __str__ to __repr__ as it allows easier debugging. |
2020-02-02 19:55:24 | Tree |
Hi Andrey,
do i need to merge this one too, or have those changes been implemented in the other one alraedy. However this one shows that there are conflicts ...
regards
Christian
Yes, this is a totally different fix.
See dxf/lwpoly-bulge.dxf test I've added in this patch.
Try to load it without this patch, and with in, you will see the big difference.
I've solved the conflicts, this can be safely merged.