Allow the skirt to be used as brim when the skirt distance is zero. This will hug the object and attach a easy to cut base to the object.

This commit is contained in:
daid303 2012-10-12 09:52:34 +02:00
parent b35766340e
commit fab673713d
2 changed files with 2 additions and 2 deletions

View file

@ -246,7 +246,7 @@ def getProfileInformation():
'Support_Offset_Y_mm': lambda setting: -profile.getPreferenceFloat('extruder_offset_y1') if profile.getProfileSetting('support_dual_extrusion') == 'True' and int(profile.getPreference('extruder_amount')) > 1 else '0',
},'skirt': {
'Skirt_line_count': storedSetting("skirt_line_count"),
'Convex': "True",
'Convex': lambda setting: "True" if profile.getProfileSettingFloat('skirt_gap') > 0.0 else "False",
'Gap_Width_mm': storedSetting("skirt_gap"),
'Layers_To_index': "1",
},'joris': {

View file

@ -206,7 +206,7 @@ class SkirtSkein:
outerLoops = getOuterLoops(loops)
self.outsetLoops = []
for i in xrange(self.repository.skirtLineCount.value, 0, -1):
outsetLoops = intercircle.getInsetSeparateLoopsFromLoops(outerLoops, -self.skirtOutset - i * self.edgeWidth)
outsetLoops = intercircle.getInsetSeparateLoopsFromLoops(outerLoops, -self.skirtOutset - (i-1) * self.edgeWidth)
outsetLoops = getOuterLoops(outsetLoops)
if self.repository.convex.value:
outsetLoops = [euclidean.getLoopConvex(euclidean.getConcatenatedList(outsetLoops))]