diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-29 15:30:33 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-29 15:30:33 +0300 |
commit | 89f0970a887612a6819263633180d027d06224af (patch) | |
tree | 0b900495a95a234c15f893563975eb346aee6e20 /cura/Scene | |
parent | 1e33360c359373f7acbf95ca9706514d12c0dd7f (diff) |
Remove trailing whitespace from Python files
Diffstat (limited to 'cura/Scene')
-rw-r--r-- | cura/Scene/ConvexHullDecorator.py | 20 | ||||
-rw-r--r-- | cura/Scene/ConvexHullNode.py | 2 | ||||
-rw-r--r-- | cura/Scene/CuraSceneNode.py | 4 | ||||
-rw-r--r-- | cura/Scene/SliceableObjectDecorator.py | 2 |
4 files changed, 14 insertions, 14 deletions
diff --git a/cura/Scene/ConvexHullDecorator.py b/cura/Scene/ConvexHullDecorator.py index df496aa401..46caa5b9e0 100644 --- a/cura/Scene/ConvexHullDecorator.py +++ b/cura/Scene/ConvexHullDecorator.py @@ -25,7 +25,7 @@ if TYPE_CHECKING: class ConvexHullDecorator(SceneNodeDecorator): """The convex hull decorator is a scene node decorator that adds the convex hull functionality to a scene node. - + If a scene node has a convex hull decorator, it will have a shadow in which other objects can not be printed. """ @@ -84,7 +84,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getAdhesionArea(self) -> Optional[Polygon]: """The polygon representing the 2D adhesion area. - + If no adhesion is used, the regular convex hull is returned """ if self._node is None: @@ -98,7 +98,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getConvexHull(self) -> Optional[Polygon]: """Get the unmodified 2D projected convex hull of the node (if any) - + In case of one-at-a-time, this includes adhesion and head+fans clearance """ if self._node is None: @@ -118,7 +118,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getConvexHullHeadFull(self) -> Optional[Polygon]: """For one at the time this is the convex hull of the node with the full head size - + In case of printing all at once this is None. """ if self._node is None: @@ -138,7 +138,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getConvexHullHead(self) -> Optional[Polygon]: """Get convex hull of the object + head size - + In case of printing all at once this is None. For one at the time this is area with intersection of mirrored head """ @@ -156,7 +156,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getConvexHullBoundary(self) -> Optional[Polygon]: """Get convex hull of the node - + In case of printing all at once this None?? For one at the time this is the area without the head. """ @@ -173,7 +173,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def getPrintingArea(self) -> Optional[Polygon]: """Get the buildplate polygon where will be printed - + In case of printing all at once this is the same as convex hull (no individual adhesion) For one at the time this includes the adhesion area """ @@ -344,7 +344,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def _add2DAdhesionMargin(self, poly: Polygon) -> Polygon: """Compensate given 2D polygon with adhesion margin - + :return: 2D polygon with added margin """ if not self._global_stack: @@ -379,7 +379,7 @@ class ConvexHullDecorator(SceneNodeDecorator): def _offsetHull(self, convex_hull: Polygon) -> Polygon: """Offset the convex hull with settings that influence the collision area. - + :param convex_hull: Polygon of the original convex hull. :return: New Polygon instance that is offset with everything that influences the collision area. @@ -476,6 +476,6 @@ class ConvexHullDecorator(SceneNodeDecorator): _influencing_settings = {"xy_offset", "xy_offset_layer_0", "mold_enabled", "mold_width", "anti_overhang_mesh", "infill_mesh", "cutting_mesh"} """Settings that change the convex hull. - + If these settings change, the convex hull should be recalculated. """ diff --git a/cura/Scene/ConvexHullNode.py b/cura/Scene/ConvexHullNode.py index cd0951cba6..765dae26a2 100644 --- a/cura/Scene/ConvexHullNode.py +++ b/cura/Scene/ConvexHullNode.py @@ -20,7 +20,7 @@ class ConvexHullNode(SceneNode): def __init__(self, node: SceneNode, hull: Optional[Polygon], thickness: float, parent: Optional[SceneNode] = None) -> None: """Convex hull node is a special type of scene node that is used to display an area, to indicate the - + location an object uses on the buildplate. This area (or area's in case of one at a time printing) is then displayed as a transparent shadow. If the adhesion type is set to raft, the area is extruded to represent the raft as well. diff --git a/cura/Scene/CuraSceneNode.py b/cura/Scene/CuraSceneNode.py index b9f2279414..e7858a9633 100644 --- a/cura/Scene/CuraSceneNode.py +++ b/cura/Scene/CuraSceneNode.py @@ -17,7 +17,7 @@ from cura.Settings.SettingOverrideDecorator import SettingOverrideDecorator # F class CuraSceneNode(SceneNode): """Scene nodes that are models are only seen when selecting the corresponding build plate - + Note that many other nodes can just be UM SceneNode objects. """ def __init__(self, parent: Optional["SceneNode"] = None, visible: bool = True, name: str = "", no_setting_override: bool = False) -> None: @@ -40,7 +40,7 @@ class CuraSceneNode(SceneNode): def getPrintingExtruder(self) -> Optional[ExtruderStack]: """Get the extruder used to print this node. If there is no active node, then the extruder in position zero is returned - + TODO The best way to do it is by adding the setActiveExtruder decorator to every node when is loaded """ global_container_stack = Application.getInstance().getGlobalContainerStack() diff --git a/cura/Scene/SliceableObjectDecorator.py b/cura/Scene/SliceableObjectDecorator.py index 982a38d667..ad51f7d755 100644 --- a/cura/Scene/SliceableObjectDecorator.py +++ b/cura/Scene/SliceableObjectDecorator.py @@ -4,7 +4,7 @@ from UM.Scene.SceneNodeDecorator import SceneNodeDecorator class SliceableObjectDecorator(SceneNodeDecorator): def __init__(self) -> None: super().__init__() - + def isSliceable(self) -> bool: return True |