Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Ha <j.ha@ultimaker.com>2017-01-25 11:48:36 +0300
committerJack Ha <j.ha@ultimaker.com>2017-01-25 11:48:36 +0300
commita52cb2fa636c2af1f70fedfd3a3af2cbdfb74180 (patch)
tree812aaad4b9cf0ffc7928a3c33c59916bc8ba3b34 /cura/LayerPolygon.py
parent5fff1f665763904f8b9ccaf4138555391396a333 (diff)
Compatibility mode scale line type colors
Diffstat (limited to 'cura/LayerPolygon.py')
-rw-r--r--cura/LayerPolygon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py
index 287caa69f9..34bb38249a 100644
--- a/cura/LayerPolygon.py
+++ b/cura/LayerPolygon.py
@@ -18,6 +18,8 @@ class LayerPolygon:
__jump_map = numpy.logical_or(numpy.logical_or(numpy.arange(11) == NoneType, numpy.arange(11) == MoveCombingType), numpy.arange(11) == MoveRetractionType)
+ ## LayerPolygon
+ # line_thicknesses: array with type as index and thickness as value
def __init__(self, mesh, extruder, line_types, data, line_widths, line_thicknesses):
self._mesh = mesh
self._extruder = extruder
@@ -63,8 +65,6 @@ class LayerPolygon:
self._vertex_begin = 0
self._vertex_end = numpy.sum( self._build_cache_needed_points )
- ## build
- # line_thicknesses: array with type as index and thickness as value
def build(self, vertex_offset, index_offset, vertices, colors, line_dimensions, extruders, line_types, indices):
if (self._build_cache_line_mesh_mask is None) or (self._build_cache_needed_points is None ):
self.buildCache()