- fixed Tcl Command AddPolygon, AddPolyline
This commit is contained in:
parent
eedfb56bf5
commit
65ab17e308
|
@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- added new capability in NCC Tool when the reference object is of Gerber type and fixed some newly introduced errors
|
- added new capability in NCC Tool when the reference object is of Gerber type and fixed some newly introduced errors
|
||||||
- fixed issue #298. The changes in postprocessors done in Preferences dis not update the object UI layout as it was supposed to. The selection of Marlin postproc. did not unhidden the Feedrate Rapids entry.
|
- fixed issue #298. The changes in postprocessors done in Preferences dis not update the object UI layout as it was supposed to. The selection of Marlin postproc. did not unhidden the Feedrate Rapids entry.
|
||||||
- fixed minor issues
|
- fixed minor issues
|
||||||
|
- fixed Tcl Command AddPolygon, AddPolyline
|
||||||
|
|
||||||
24.08.2019
|
24.08.2019
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,8 @@ class TclCommandAddPolygon(TclCommandSignaled):
|
||||||
if len(unnamed_args) % 2 != 0:
|
if len(unnamed_args) % 2 != 0:
|
||||||
self.raise_tcl_error("Incomplete coordinates.")
|
self.raise_tcl_error("Incomplete coordinates.")
|
||||||
|
|
||||||
points = [[float(unnamed_args[2*i]), float(unnamed_args[2*i+1])] for i in range(len(unnamed_args)/2)]
|
nr_points = int(len(unnamed_args) / 2)
|
||||||
|
points = [[float(unnamed_args[2*i]), float(unnamed_args[2*i+1])] for i in range(nr_points)]
|
||||||
|
|
||||||
obj.add_polygon(points)
|
obj.add_polygon(points)
|
||||||
obj.plot()
|
obj.plot()
|
||||||
|
|
|
@ -55,7 +55,8 @@ class TclCommandAddPolyline(TclCommandSignaled):
|
||||||
if len(unnamed_args) % 2 != 0:
|
if len(unnamed_args) % 2 != 0:
|
||||||
self.raise_tcl_error("Incomplete coordinates.")
|
self.raise_tcl_error("Incomplete coordinates.")
|
||||||
|
|
||||||
points = [[float(unnamed_args[2*i]), float(unnamed_args[2*i+1])] for i in range(len(unnamed_args)/2)]
|
nr_points = int(len(unnamed_args) / 2)
|
||||||
|
points = [[float(unnamed_args[2*i]), float(unnamed_args[2*i+1])] for i in range(nr_points)]
|
||||||
|
|
||||||
obj.add_polyline(points)
|
obj.add_polyline(points)
|
||||||
obj.plot()
|
obj.plot()
|
||||||
|
|
Loading…
Reference in New Issue