Rename smsOrganic to smsTreeOrganic

This commit is contained in:
Noisyfox
2025-02-08 11:34:22 +08:00
parent 1c498664a5
commit cc9f29c463
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1808,7 +1808,7 @@ void generate_support_toolpaths(
filler->link_max_length = coord_t(scale_(filler->spacing * link_max_length_factor / density));
sheath = true;
no_sort = true;
} else if (support_params.support_style == SupportMaterialStyle::smsOrganic) {
} else if (support_params.support_style == SupportMaterialStyle::smsTreeOrganic) {
tree_supports_generate_paths(base_layer.extrusions, base_layer.polygons_to_extrude(), flow, support_params);
done = true;
}
+2 -2
View File
@@ -678,7 +678,7 @@ public:
m_support_material_closing_radius(params.support_closing_radius)
{
if (m_style == smsDefault) m_style = smsGrid;
if (std::set<SupportMaterialStyle>{smsTreeSlim, smsTreeStrong, smsTreeHybrid, smsOrganic}.count(m_style))
if (std::set<SupportMaterialStyle>{smsTreeSlim, smsTreeStrong, smsTreeHybrid, smsTreeOrganic}.count(m_style))
m_style = smsGrid;
switch (m_style) {
case smsGrid:
@@ -774,7 +774,7 @@ public:
case smsTreeSlim:
case smsTreeStrong:
case smsTreeHybrid:
case smsOrganic:
case smsTreeOrganic:
assert(false);
//[[fallthrough]];
return Polygons();
+1 -1
View File
@@ -161,7 +161,7 @@ struct SupportParameters {
if (support_style == smsDefault) {
if (is_tree(object_config.support_type)) {
// Orca: use organic as default
support_style = smsOrganic;
support_style = smsTreeOrganic;
} else {
support_style = smsGrid;
}
+1 -1
View File
@@ -1631,7 +1631,7 @@ void TreeSupport::generate_toolpaths()
void TreeSupport::generate()
{
if (m_support_params.support_style == smsOrganic) {
if (m_support_params.support_style == smsTreeOrganic) {
generate_tree_support_3D(*m_object, this, this->throw_on_cancel);
return;
}