- fixed zoom directions legacy graphic engine (previous commit)

- fixed display of MultiGeo geometries in legacy graphic engine
- fixed Paint tool to work in legacy graphic engine
This commit is contained in:
Marius Stanciu
2019-09-22 02:38:56 +03:00
committed by Marius
parent e8109d2007
commit 5a4f5dbe2f
4 changed files with 69 additions and 60 deletions

View File

@@ -5364,7 +5364,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
return factor
def plot_element(self, element, color='red', visible=None):
def plot_element(self, element, color='#FF0000FF', visible=None):
visible = visible if visible else self.options['plot']
@@ -5375,19 +5375,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
except TypeError: # Element is not iterable...
# if self.app.is_legacy is False:
self.add_shape(shape=element, color=color, visible=visible, layer=0)
# else:
# if type(element) == Polygon:
# x, y = element.exterior.coords.xy
# self.axes.plot(x, y, 'r-')
# for ints in element.interiors:
# x, y = ints.coords.xy
# self.axes.plot(x, y, 'r-')
# return
#
# if type(element) == LineString or type(element) == LinearRing:
# x, y = element.coords.xy
# self.axes.plot(x, y, 'r-')
# return
def plot(self, visible=None, kind=None):
"""