mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Fix some code style
This commit is contained in:
parent
95481b8560
commit
aac6fe4860
1 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from shapely import affinity
|
||||||
|
from shapely.geometry import Polygon
|
||||||
|
|
||||||
from UM.Scene.Iterator import Iterator
|
from UM.Scene.Iterator import Iterator
|
||||||
from UM.Scene.SceneNode import SceneNode
|
from UM.Scene.SceneNode import SceneNode
|
||||||
|
|
||||||
|
@ -73,13 +76,11 @@ class OneAtATimeIterator(Iterator.Iterator):
|
||||||
def flip_x(polygon):
|
def flip_x(polygon):
|
||||||
tm2 = [-1, 0, 0, 1, 0, 0]
|
tm2 = [-1, 0, 0, 1, 0, 0]
|
||||||
return affinity.affine_transform(affinity.translate(polygon, xoff = -machine_size[0]), tm2)
|
return affinity.affine_transform(affinity.translate(polygon, xoff = -machine_size[0]), tm2)
|
||||||
|
|
||||||
def flip_y(polygon):
|
def flip_y(polygon):
|
||||||
tm2 = [1, 0, 0, -1, 0, 0]
|
tm2 = [1, 0, 0, -1, 0, 0]
|
||||||
return affinity.affine_transform(affinity.translate(polygon, yoff = -machine_size[1]), tm2)
|
return affinity.affine_transform(affinity.translate(polygon, yoff = -machine_size[1]), tm2)
|
||||||
|
|
||||||
from shapely import affinity
|
|
||||||
from shapely.geometry import Polygon
|
|
||||||
|
|
||||||
node_list = []
|
node_list = []
|
||||||
for node in self._scene_node.getChildren():
|
for node in self._scene_node.getChildren():
|
||||||
if not issubclass(type(node), SceneNode):
|
if not issubclass(type(node), SceneNode):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue