chiark / gitweb /
Add minimal skirt length to ensure extruder primed.
authordaid <daid303@gmail.com>
Tue, 6 Aug 2013 12:02:24 +0000 (14:02 +0200)
committerdaid <daid303@gmail.com>
Tue, 6 Aug 2013 12:02:24 +0000 (14:02 +0200)
Cura/util/profile.py
Cura/util/sliceEngine.py

index 6464389d06d1b657ca611a4ca25b6d7ed8213983..3d0b66b0fdaae480afe20078bb6b7a3a02cc018c 100644 (file)
@@ -149,6 +149,7 @@ setting('fan_enabled',              True, bool,  'advanced', 'Cool').setLabel('E
 
 setting('skirt_line_count',            1, int,   'expert', 'Skirt').setRange(0).setLabel('Line count', 'The skirt is a line drawn around the object at the first layer. This helps to prime your extruder, and to see if the object fits on your platform.\nSetting this to 0 will disable the skirt. Multiple skirt lines can help priming your extruder better for small objects.')
 setting('skirt_gap',                 3.0, float, 'expert', 'Skirt').setRange(0).setLabel('Start distance (mm)', 'The distance between the skirt and the first layer.\nThis is the minimal distance, multiple skirt lines will be put outwards from this distance.')
+setting('skirt_minimal_length',    150.0, float, 'expert', 'Skirt').setRange(0).setLabel('Minimal length (mm)', 'The minimal length of the skirt, if this minimal length is not reached it will add more skirt lines to reach this minimal lenght.\nNote: If the line count is set to 0 this is ignored.')
 #setting('max_z_speed',               3.0, float, 'expert',   'Speed').setRange(0.1).setLabel('Max Z speed (mm/s)', 'Speed at which Z moves are done. When you Z axis is properly lubricated you can increase this for less Z blob.')
 #setting('retract_on_jumps_only',    True, bool,  'expert',   'Retraction').setLabel('Retract on jumps only', 'Only retract when we are making a move that is over a hole in the model, else retract on every move. This effects print quality in different ways.')
 setting('fan_layer',                   1, int,   'expert',   'Cool').setRange(0).setLabel('Fan on layer number', 'The layer at which the fan is turned on. The first layer is layer 0. The first layer can stick better if you turn on the fan on, on the 2nd layer.')
index 259513b9f8aa47ace944bb4626a74a7e110d4f0f..9c5198344f6e178e8d665b629c9429a6b1cfbb03 100644 (file)
@@ -290,6 +290,7 @@ class Slicer(object):
                else:
                        settings['skirtDistance'] = int(profile.getProfileSettingFloat('skirt_gap') * 1000)
                        settings['skirtLineCount'] = int(profile.getProfileSettingFloat('skirt_line_count'))
+                       settings['skirtMinLenght'] = int(profile.getProfileSettingFloat('skirt_minimal_length') * 1000)
 
                if profile.getProfileSetting('fix_horrible_union_all_type_a') == 'True':
                        settings['fixHorrible'] |= 0x01