diff options
author | Thomas-Karl Pietrowski <thopiekar@googlemail.com> | 2016-03-15 14:18:44 +0300 |
---|---|---|
committer | Thomas-Karl Pietrowski <thopiekar@googlemail.com> | 2016-03-15 14:18:44 +0300 |
commit | eee1be94abf9d708a9cf52b421b479e570d57846 (patch) | |
tree | b7df9bde26af593d467919795a37a5047f398366 /cura/LayerData.py | |
parent | 5ae63f2de1e2da63a8ed8097c57d564c84856530 (diff) |
Removing unused imports and rename built-in varibales/functions into save one
* The new names for the variables might be misleading...
Diffstat (limited to 'cura/LayerData.py')
-rw-r--r-- | cura/LayerData.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cura/LayerData.py b/cura/LayerData.py index 90529e63ea..dc9b4faa0e 100644 --- a/cura/LayerData.py +++ b/cura/LayerData.py @@ -7,8 +7,6 @@ from UM.Math.Color import Color from UM.Math.Vector import Vector import numpy -import math -import copy class LayerData(MeshData): def __init__(self): @@ -20,11 +18,11 @@ class LayerData(MeshData): if layer not in self._layers: self._layers[layer] = Layer(layer) - def addPolygon(self, layer, type, data, line_width): + def addPolygon(self, layer, polygon_type, data, line_width): if layer not in self._layers: self.addLayer(layer) - p = Polygon(self, type, data, line_width) + p = Polygon(self, polygon_type, data, line_width) self._layers[layer].polygons.append(p) def getLayer(self, layer): @@ -69,8 +67,8 @@ class LayerData(MeshData): self.addIndices(indices.flatten()) class Layer(): - def __init__(self, id): - self._id = id + def __init__(self, layer_id): + self._id = layer_id self._height = 0.0 self._thickness = 0.0 self._polygons = [] @@ -173,9 +171,9 @@ class Polygon(): MoveCombingType = 8 MoveRetractionType = 9 - def __init__(self, mesh, type, data, line_width): + def __init__(self, mesh, polygon_type, data, line_width): self._mesh = mesh - self._type = type + self._type = polygon_type self._data = data self._line_width = line_width / 1000 |