Added in random seam placement for flat seams

This commit is contained in:
LarsBrubaker 2021-07-28 08:00:35 -07:00
parent 7c6aad79c0
commit 49e7d1223d
5 changed files with 13 additions and 30 deletions

View file

@ -101,6 +101,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public const string filament_diameter = nameof(filament_diameter);
public const string filament_has_been_loaded = nameof(filament_has_been_loaded);
public const string filament_runout_sensor = nameof(filament_runout_sensor);
public const string flat_seam_placement = nameof(flat_seam_placement);
public const string enable_firmware_sounds = nameof(enable_firmware_sounds);
public const string fill_angle = nameof(fill_angle);
public const string fill_density = nameof(fill_density);
@ -113,8 +114,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public const string first_layer_speed = nameof(first_layer_speed);
public const string first_layer_temperature = nameof(first_layer_temperature);
public const string g0 = nameof(g0);
public const string gcode_flavor = nameof(gcode_flavor);
public const string gcode_output_type = nameof(gcode_output_type);
public const string has_c_axis = nameof(has_c_axis);
public const string has_fan = nameof(has_fan);
public const string has_fan_per_extruder = nameof(has_fan_per_extruder);
@ -196,7 +195,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public const string raft_extruder = nameof(raft_extruder);
public const string raft_layers = nameof(raft_layers);
public const string raft_print_speed = nameof(raft_print_speed);
public const string randomize_start = nameof(randomize_start);
public const string read_regex = nameof(read_regex);
public const string recover_first_layer_speed = nameof(recover_first_layer_speed);
public const string recover_is_enabled = nameof(recover_is_enabled);

View file

@ -596,6 +596,15 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
DefaultValue = "0"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.flat_seam_placement,
PresentationName = "Flat Seam Placement".Localize(),
HelpText = "What to do when there is not a good place to hide the seam.".Localize(),
DataEditType = DataEditTypes.LIST,
ListValues = "Place in back,Randomize",
DefaultValue = "Place in back",
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.merge_overlapping_lines,
PresentationName = "Merge Overlapping Lines".Localize(),
@ -848,24 +857,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
DefaultValue = "0"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.gcode_flavor,
PresentationName = "G-Code Flavor".Localize(),
HelpText = "The version of G-Code the printer's firmware communicates with. Some firmware use different G and M codes. Setting this ensures that the output G-Code will use the correct commands.".Localize(),
DataEditType = DataEditTypes.LIST,
ListValues = "reprap,teacup,makerbot,sailfish,mach3_ecm,no_extrusion",
DefaultValue = "reprap"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.gcode_output_type,
PresentationName = "G-Code Output".Localize(),
HelpText = "The version of G-Code the printer's firmware communicates with. Some firmware use different G and M codes. Setting this ensures that the output G-Code will use the correct commands.".Localize(),
DataEditType = DataEditTypes.LIST,
ListValues = "REPRAP,ULTIGCODE,BFB,MACH3",
DefaultValue = "REPRAP"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.has_z_probe,
PresentationName = "Has Z Probe".Localize(),
@ -1672,14 +1663,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
DefaultValue = "0"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.randomize_start,
PresentationName = "Randomize Starting Points".Localize(),
HelpText = "Start each new layer from a different vertex to reduce seams.".Localize(),
DataEditType = DataEditTypes.CHECK_BOX,
DefaultValue = "0"
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.resume_gcode,
PresentationName = "Resume G-Code".Localize(),

View file

@ -74,6 +74,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
SettingsKey.external_perimeters_first,
SettingsKey.perimeter_start_end_overlap,
SettingsKey.merge_overlapping_lines,
SettingsKey.flat_seam_placement,
SettingsKey.expand_thin_walls,
SettingsKey.coast_at_end_distance
}),