mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
Changed the point data type sent from the backend from int64 to float.
Added extruder information to LayerPolygon
This commit is contained in:
parent
d31516bbb1
commit
3d413df215
3 changed files with 27 additions and 13 deletions
|
|
@ -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
|
||||
|
|
@ -113,6 +114,10 @@ class LayerPolygon:
|
|||
def lineMeshElementCount(self):
|
||||
return (self._index_end - self._index_begin)
|
||||
|
||||
@property
|
||||
def extruder(self):
|
||||
return self._extruder
|
||||
|
||||
@property
|
||||
def types(self):
|
||||
return self._types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue