mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Removed unused function & added more typing
This commit is contained in:
parent
0fded58988
commit
76cfb19dfb
2 changed files with 13 additions and 16 deletions
|
|
@ -21,13 +21,6 @@ class LayerDataBuilder(MeshBuilder):
|
|||
if layer not in self._layers:
|
||||
self._layers[layer] = Layer(layer)
|
||||
|
||||
def addPolygon(self, layer: int, polygon_type, data, line_width, line_thickness, line_feedrate):
|
||||
if layer not in self._layers:
|
||||
self.addLayer(layer)
|
||||
|
||||
p = LayerPolygon(self, polygon_type, data, line_width, line_thickness, line_feedrate)
|
||||
self._layers[layer].polygons.append(p)
|
||||
|
||||
def getLayer(self, layer: int) -> Optional[Layer]:
|
||||
return self._layers.get(layer)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue