Put support 'line' support in for CuraEngine

This commit is contained in:
larsbrubaker 2014-05-01 11:00:54 -07:00
parent 45e92a61c6
commit 6e60cce574

View file

@ -125,6 +125,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
new ScaledSingleNumber("supportXYDistance", "support_material_xy_distance", 1000),
new ScaledSingleNumber("supportZDistance", "support_material_z_distance", 1000),
new SupportTypeMapping("supportType", "support_type"),
new MapItem("minimalLayerTime", "slowdown_below_layer_time"),
new InfillTranslator("sparseInfillLineDistance", "fill_density"),
@ -203,6 +205,29 @@ enableOozeShield = 0;
}
}
public class SupportTypeMapping : MapItem
{
public override string MappedValue
{
get
{
switch (base.MappedValue)
{
case "LINES":
return "1"; // the lines setting from curaengine
default:
return "0"; // the grid setting from curaengine
}
}
}
public SupportTypeMapping(string cura, string slicer)
: base(cura, slicer)
{
}
}
public class SupportMatterial : MapItem
{
public override string MappedValue