diff options
author | Jack Ha <j.ha@ultimaker.com> | 2017-02-08 13:48:00 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2017-02-08 13:48:00 +0300 |
commit | 47ab49795f732886d223f61f32a04d3239185458 (patch) | |
tree | 30a98c954e5976c4d90f80b06aa5cc672df19aa0 /cura/LayerPolygon.py | |
parent | 50ba236e660ac7df92e3070585de59a6d25374b0 (diff) |
Added comments, changed small layout and id thing. CURA-3273
Diffstat (limited to 'cura/LayerPolygon.py')
-rw-r--r-- | cura/LayerPolygon.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py index 577de9e40b..242bb25d56 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -69,9 +69,20 @@ class LayerPolygon: self._vertex_begin = 0 self._vertex_end = numpy.sum( self._build_cache_needed_points ) - + + ## Set all the arrays provided by the function caller, representing the LayerPolygon + # The arrays are either by vertex or by indices. + # + # \param vertex_offset : determines where to start and end filling the arrays + # \param index_offset : determines where to start and end filling the arrays + # \param vertices : vertex numpy array to be filled + # \param colors : vertex numpy array to be filled + # \param line_dimensions : vertex numpy array to be filled + # \param extruders : vertex numpy array to be filled + # \param line_types : vertex numpy array to be filled + # \param indices : index numpy array to be filled 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 ): + if self._build_cache_line_mesh_mask is None or self._build_cache_needed_points is None: self.buildCache() line_mesh_mask = self._build_cache_line_mesh_mask |