diff options
author | Remco Burema <r.burema@ultimaker.com> | 2021-09-16 23:27:52 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2021-09-16 23:27:52 +0300 |
commit | a987b9972a2ba4d4b022e083bd0cff55a4072d78 (patch) | |
tree | 0abb554ba54852e2594009471dcdcc7fa138e08b /cura/LayerPolygon.py | |
parent | e119c4694416f562305d93d42f0306e5a70ab31c (diff) | |
parent | 11b1998156632fc2ebd2b6b93fc2f27ae6bfc3ae (diff) |
Merge branch 'master' into bremco-graphics_buffer_update
Diffstat (limited to 'cura/LayerPolygon.py')
-rw-r--r-- | cura/LayerPolygon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py index 610366d5fc..ddb3a86289 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -67,7 +67,7 @@ class LayerPolygon: self._vertex_count = self._mesh_line_count + numpy.sum(self._types[1:] == self._types[:-1]) # Buffering the colors shouldn't be necessary as it is not - # re-used and can save alot of memory usage. + # re-used and can save a lot of memory usage. self._color_map = LayerPolygon.getColorMap() self._colors = self._color_map[self._types] # type: numpy.ndarray @@ -154,7 +154,7 @@ class LayerPolygon: # When the line type changes the index needs to be increased by 2. indices[self._index_begin:self._index_end, :] += numpy.cumsum(needed_points_list[line_mesh_mask.ravel(), 0], dtype = numpy.int32).reshape((-1, 1)) # Each line segment goes from it's starting point p to p+1, offset by the vertex index. - # The -1 is to compensate for the neccecarily True value of needed_points_list[0,0] which causes an unwanted +1 in cumsum above. + # The -1 is to compensate for the necessarily True value of needed_points_list[0,0] which causes an unwanted +1 in cumsum above. indices[self._index_begin:self._index_end, :] += numpy.array([self._vertex_begin - 1, self._vertex_begin]) self._build_cache_line_mesh_mask = None |