chiark / gitweb /
Add spialize mode which makes printing of cups and vases easy.
authordaid <daid303@gmail.com>
Wed, 30 Oct 2013 13:54:04 +0000 (14:54 +0100)
committerdaid <daid303@gmail.com>
Wed, 30 Oct 2013 13:54:04 +0000 (14:54 +0100)
Cura/util/profile.py
Cura/util/sliceEngine.py
changelog

index 15be661be15a416057681ffc0679dbc69504bb05..5e91641c69229e36104f4422d25abade1aa1ff56 100644 (file)
@@ -206,7 +206,7 @@ setting('fill_overlap', 15, int, 'expert', _('Infill')).setRange(0,100).setLabel
 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."))
 setting('support_z_distance', 0.15, float, 'expert', _('Support')).setRange(0,10).setLabel(_("Distance Z (mm)"), _("Distance from the top/bottom of the support to the print. A small gap here makes it easier to remove the support but makes the print a bit uglier.\n0.15mm gives a good seperation of the support material."))
-#setting('joris', False, bool, 'expert', 'Joris').setLabel(_("Spiralize the outer contour"), _("[Joris] is a code name for smoothing out the Z move of the outer edge. This will create a steady Z increase over the whole print. It is intended to be used with a single walled wall thickness to make cups/vases."))
+setting('spiralize', False, bool, 'expert', 'Spiralize').setLabel(_("Spiralize the outer contour"), _("Spiralize is smoothing out the Z move of the outer edge. This will create a steady Z increase over the whole print. This feature turns a solid object into a single walled print with a solid bottom."))
 #setting('bridge_speed', 100, int, 'expert', 'Bridge').setRange(0,100).setLabel(_("Bridge speed (%)"), _("Speed at which layers with bridges are printed, compared to normal printing speed."))
 setting('brim_line_count', 20, int, 'expert', _('Brim')).setRange(1,100).setLabel(_("Brim line amount"), _("The amount of lines used for a brim, more lines means a larger brim which sticks better, but this also makes your effective print area smaller."))
 setting('raft_margin', 5, float, 'expert', _('Raft')).setRange(0).setLabel(_("Extra margin (mm)"), _("If the raft is enabled, this is the extra raft area around the object which is also rafted. Increasing this margin will create a stronger raft while using more material and leaving less are for your print."))
@@ -799,6 +799,9 @@ def calculateEdgeWidth():
        wallThickness = getProfileSettingFloat('wall_thickness')
        nozzleSize = getProfileSettingFloat('nozzle_size')
 
+       if getProfileSetting('spiralize') == 'True':
+               return wallThickness
+
        if wallThickness < 0.01:
                return nozzleSize
        if wallThickness < nozzleSize:
@@ -821,6 +824,8 @@ def calculateLineCount():
                return 0
        if wallThickness < nozzleSize:
                return 1
+       if getProfileSetting('spiralize') == 'True':
+               return 1
 
        lineCount = int(wallThickness / (nozzleSize - 0.0001))
        if lineCount < 1:
index e4532f3c44f0528a3d7c5de542b1e8fe6a81854f..beb4abfc744f68b40b8865a965163d4b6f0d9242 100644 (file)
@@ -326,6 +326,8 @@ class Slicer(object):
                        settings['layerThickness'] = 1000
                if profile.getMachineSetting('gcode_flavor') == 'UltiGCode':
                        settings['gcodeFlavor'] = 1
+               if profile.getProfileSetting('spiralize') == 'True':
+                       settings['spiralizeMode'] = 1
                return settings
 
        def _runSliceProcess(self, cmdList):
index 0e7012ba7a0782548d1b35a9e0c23f796d8d65bc..49d4de80d88b23207d58a971dde084be9311aa73 100644 (file)
--- a/changelog
+++ b/changelog
@@ -9,6 +9,7 @@ Development
 * Fix that retraction is enabled when selecting UM2 or RepRap.
 * Scale down very large models, or scale up very tiny models automagicly.
 * Fixed skirt and brim to go around the support instead of under it.
+* Added spiralize mode
 
 Ultimaker2 - Firmware update - xx.xx-xx
 * Fixed SD-Card read error