diff options
author | Johan K <johan@3dverkstan.se> | 2016-07-14 12:08:05 +0300 |
---|---|---|
committer | Johan K <johan@3dverkstan.se> | 2016-07-14 12:08:05 +0300 |
commit | 3d413df215ae5cd042b1d9ebaa2096224a46d0ac (patch) | |
tree | 903da90315417d4b0f84699753f842984da40369 /cura/LayerPolygon.py | |
parent | d31516bbb12d98e11c9b78317a10210a6401caa1 (diff) |
Changed the point data type sent from the backend from int64 to float.
Added extruder information to LayerPolygon
Diffstat (limited to 'cura/LayerPolygon.py')
-rw-r--r-- | cura/LayerPolygon.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py index c534592757..c62113916d 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -17,11 +17,12 @@ class LayerPolygon: __jump_map = numpy.logical_or( numpy.arange(10) == NoneType, numpy.arange(10) >= MoveCombingType ) - def __init__(self, mesh, line_types, data, line_widths): + def __init__(self, mesh, extruder, line_types, data, line_widths): self._mesh = mesh + self._extruder = extruder self._types = line_types self._data = data - self._line_widths = line_widths / 1000 + self._line_widths = line_widths self._vertex_begin = 0 self._vertex_end = 0 @@ -114,6 +115,10 @@ class LayerPolygon: return (self._index_end - self._index_begin) @property + def extruder(self): + return self._extruder + + @property def types(self): return self._types |