mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
WIP: Refactoring of PrintRegions
This commit is contained in:
@@ -1667,6 +1667,8 @@ ModelVolumeType ModelVolume::type_from_string(const std::string &s)
|
||||
// New type (supporting the support enforcers & blockers)
|
||||
if (s == "ModelPart")
|
||||
return ModelVolumeType::MODEL_PART;
|
||||
if (s == "NegativeVolume")
|
||||
return ModelVolumeType::NEGATIVE_VOLUME;
|
||||
if (s == "ParameterModifier")
|
||||
return ModelVolumeType::PARAMETER_MODIFIER;
|
||||
if (s == "SupportEnforcer")
|
||||
@@ -1682,6 +1684,7 @@ std::string ModelVolume::type_to_string(const ModelVolumeType t)
|
||||
{
|
||||
switch (t) {
|
||||
case ModelVolumeType::MODEL_PART: return "ModelPart";
|
||||
case ModelVolumeType::NEGATIVE_VOLUME: return "NegativeVolume";
|
||||
case ModelVolumeType::PARAMETER_MODIFIER: return "ParameterModifier";
|
||||
case ModelVolumeType::SUPPORT_ENFORCER: return "SupportEnforcer";
|
||||
case ModelVolumeType::SUPPORT_BLOCKER: return "SupportBlocker";
|
||||
|
||||
Reference in New Issue
Block a user