Add multi-nozzle exclusion volume modes

This commit is contained in:
Harry Loud committed 2026-09-14 12:27:33 +01:00
1 parent e21bd886eb
commit dbae415127
17 files changed
+578 -40

No files matched your search

+9
View File
@@ -15,6 +15,7 @@
#include <regex>
#include <utility>
#include <cstdint>
#include <limits>
#include <wx/numformatter.h>
#include <wx/tooltip.h>
#include <wx/notebook.h>
@@ -683,6 +684,14 @@ void Field::get_value_by_opt_type(wxString& str, const bool check_value/* = true
m_value = into_u8(str);
}
break;
} else if (m_opt.opt_key == "extruder_bed_exclude_area") {
const std::string definition = into_u8(str);
if (!is_valid_bed_exclude_area_string(definition, std::numeric_limits<double>::max())) {
show_error(m_parent, _L("Invalid exclusion volume format. Use XxY, XxY, ... or ZMIN..ZMAX;XxY, XxY, ... and separate multiple volumes with |."));
const std::string old_value = m_value.empty() ? std::string{} : boost::any_cast<std::string>(m_value);
set_value(from_u8(old_value), true);
break;
}
} else if (m_opt.opt_key == "extra_solid_infills") {
string ustr(str.utf8_string());
// New rule: accept either interval form (N or N#K) or explicit list (e.g. 1,7,9), with optional quotes.