diff options
author | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
---|---|---|
committer | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
commit | d68f375e386049878de69eb0b33aacc3f40cb344 (patch) | |
tree | 7c31e3a32ac8b9d2c7328c6de5f300eb4eb15182 /cura/LayerPolygon.py | |
parent | 7eeae4db87f3f6e860c2bc4faab79af50c59e484 (diff) |
Fix various typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
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 7f62a0a8fa..2c3b432b1d 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -59,7 +59,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 @@ -146,7 +146,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 |