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:
authorJaime van Kessel <nallath@gmail.com>2017-04-05 12:05:48 +0300
committerJaime van Kessel <nallath@gmail.com>2017-04-05 12:05:48 +0300
commit4626bc37a9a76c9aeb2699c307adfe77135c1d3f (patch)
treea17e0b6ad5bcb4095c939bca90eb2951d5ccc114 /cura/Arrange.py
parentecf905f58006f9734eb2adc9a2694bdbfe310a63 (diff)
Improved documentation
Diffstat (limited to 'cura/Arrange.py')
-rwxr-xr-xcura/Arrange.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/cura/Arrange.py b/cura/Arrange.py
index 78b89b9e6a..fb59bc51dd 100755
--- a/cura/Arrange.py
+++ b/cura/Arrange.py
@@ -79,18 +79,17 @@ class Arrange:
nodes.append(new_node)
return nodes
- ## Fill priority, center is best. lower value is better
+ ## Fill priority, center is best. Lower value is better
+ # This is a strategy for the arranger.
def centerFirst(self):
- # Distance x + distance y: creates diamond shape
- #self._priority = numpy.fromfunction(
- # lambda i, j: abs(self._offset_x-i)+abs(self._offset_y-j), self.shape, dtype=numpy.int32)
# Square distance: creates a more round shape
self._priority = numpy.fromfunction(
lambda i, j: (self._offset_x - i) ** 2 + (self._offset_y - j) ** 2, self.shape, dtype=numpy.int32)
self._priority_unique_values = numpy.unique(self._priority)
self._priority_unique_values.sort()
- ## Fill priority, back is best. lower value is better
+ ## Fill priority, back is best. Lower value is better
+ # This is a strategy for the arranger.
def backFirst(self):
self._priority = numpy.fromfunction(
lambda i, j: 10 * j + abs(self._offset_x - i), self.shape, dtype=numpy.int32)