Cannot mirror geometry after cut
Issue #220
resolved
With the latest master branch, to reproduce the problem,
- Create a new geometry
- Edit the geometry, and draw a poly line
- Then draw a rectangle to cut the poly line
- Save the geometry object
- Go to double side tool
- Enter an arbitrary point, say (0,0), then hit mirror button
- Nothing happens, and the console shows
File "c:\works\pcb\flatcam\code\flatcam\DblSidedTool.py", line 183, in on_mirror
fcobj.mirror(axis, [px, py])
File "c:\works\pcb\flatcam\code\flatcam\camlib.py", line 966, in mirror
xscale, yscale, origin=(px, py))
File "C:\WinPython-32bit-2.7.10.3\python-2.7.10\lib\site-packages\shapely\affinity.py", line 199, in scale
return affine_transform(geom, matrix)
File "C:\WinPython-32bit-2.7.10.3\python-2.7.10\lib\site-packages\shapely\affinity.py", line 46, in affine_transform
if geom.is_empty:
AttributeError: 'list' object has no attribute 'is_empty'
Comments (4)
-
repo owner -
reporter Yes correct
-
repo owner - marked as major
Bug confirmed.
-
repo owner - changed status to resolved
- Log in to comment
The latest now is commit 261054f. Is this correct?