diff options
author | Jack Ha <j.ha@ultimaker.com> | 2016-12-22 16:41:50 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2016-12-22 16:41:50 +0300 |
commit | c12e6da3ac5224ae72111ae21a1e648f321c5e2d (patch) | |
tree | a4872ab3391ad1e4ed9965807e5241131ed1883f /cura/Layer.py | |
parent | 2b37bde6302142ed24bfc32881e78cd59a61c38b (diff) |
Started setting layer height and line width in layer view
Diffstat (limited to 'cura/Layer.py')
-rw-r--r-- | cura/Layer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cura/Layer.py b/cura/Layer.py index bc9f66e881..794d282a47 100644 --- a/cura/Layer.py +++ b/cura/Layer.py @@ -49,14 +49,14 @@ class Layer: return result - def build(self, vertex_offset, index_offset, vertices, colors, indices, normals): + def build(self, vertex_offset, index_offset, vertices, colors, indices): result_vertex_offset = vertex_offset result_index_offset = index_offset self._element_count = 0 for polygon in self._polygons: polygon.build(result_vertex_offset, result_index_offset, vertices, colors, indices) - polygon_normals = polygon.getNormals() # [numpy.where(numpy.logical_not(polygon.jumpMask))] - normals[result_vertex_offset:result_vertex_offset+polygon.lineMeshVertexCount()] = polygon_normals[:polygon.lineMeshVertexCount()] + #polygon_normals = polygon.getNormals() # [numpy.where(numpy.logical_not(polygon.jumpMask))] + #normals[result_vertex_offset:result_vertex_offset+polygon.lineMeshVertexCount()] = polygon_normals[:polygon.lineMeshVertexCount()] result_vertex_offset += polygon.lineMeshVertexCount() result_index_offset += polygon.lineMeshElementCount() self._element_count += polygon.elementCount |