mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
WIP: Refactoring of PrintRegions
This commit is contained in:
parent
5c35fa4539
commit
f5f912e6e9
6 changed files with 1738 additions and 290 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue