chiark / gitweb /
Add support for line based support material.
authordaid <daid303@gmail.com>
Thu, 13 Feb 2014 07:50:49 +0000 (08:50 +0100)
committerdaid <daid303@gmail.com>
Thu, 13 Feb 2014 07:50:49 +0000 (08:50 +0100)
Cura/util/profile.py
Cura/util/sliceEngine.py

index 8ad8b15452ecae2f87d2d4ae00bb2e479508973e..ba2e4c1fb35cbdcd8ec3aab1ee05967e8a85d217 100644 (file)
@@ -218,6 +218,7 @@ setting('cool_head_lift',          False, bool,  'expert',   _('Cool')).setLabel
 setting('solid_top', True, bool, 'expert', _('Infill')).setLabel(_("Solid infill top"), _("Create a solid top surface, if set to false the top is filled with the fill percentage. Useful for cups/vases."))
 setting('solid_bottom', True, bool, 'expert', _('Infill')).setLabel(_("Solid infill bottom"), _("Create a solid bottom surface, if set to false the bottom is filled with the fill percentage. Useful for buildings."))
 setting('fill_overlap', 15, int, 'expert', _('Infill')).setRange(0,100).setLabel(_("Infill overlap (%)"), _("Amount of overlap between the infill and the walls. There is a slight overlap with the walls and the infill so the walls connect firmly to the infill."))
+setting('support_type', 'Grid', ['Grid', 'Lines'], 'expert', _('Support')).setLabel(_("Structure type"), _("The type of support structure.\nGrid is very strong and can come off in 1 piece, however, sometimes it is too strong.\nLines are single walled lines that break off one at a time. Which is more work to remove, but as it is less strong it does work better on tricky prints."))
 setting('support_angle', 60, float, 'expert', _('Support')).setRange(0,90).setLabel(_("Overhang angle for support (deg)"), _("The minimal angle that overhangs need to have to get support. With 0 degree being horizontal and 90 degree being vertical."))
 setting('support_fill_rate', 15, int, 'expert', _('Support')).setRange(0,100).setLabel(_("Fill amount (%)"), _("Amount of infill structure in the support material, less material gives weaker support which is easier to remove. 15% seems to be a good average."))
 setting('support_xy_distance', 0.7, float, 'expert', _('Support')).setRange(0,10).setLabel(_("Distance X/Y (mm)"), _("Distance of the support material from the print, in the X/Y directions.\n0.7mm gives a nice distance from the print so the support does not stick to the print."))
index 9b09c6dcd8bad96430c0c4d097f40b0b0cac429b..d820b6fbc8cb9c2c50d33fca0bdcc6c0ac52dd5c 100644 (file)
@@ -471,6 +471,8 @@ class Engine(object):
                settings['fanFullOnLayerNr'] = (fanFullHeight - settings['initialLayerThickness'] - 1) / settings['layerThickness'] + 1
                if settings['fanFullOnLayerNr'] < 0:
                        settings['fanFullOnLayerNr'] = 0
+               if profile.getProfileSetting('support_type') == 'Lines':
+                       settings['supportType'] = 1
 
                if profile.getProfileSettingFloat('fill_density') == 0:
                        settings['sparseInfillLineDistance'] = -1