Changed the point data type sent from the backend from int64 to float.

Added extruder information to LayerPolygon
This commit is contained in:
Johan K 2016-07-14 11:08:05 +02:00
parent d31516bbb1
commit 3d413df215
3 changed files with 27 additions and 13 deletions

View file

@ -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