mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Add support for Orca-specific extrusion roles
This commit is contained in:
@@ -140,6 +140,12 @@ enum class EGCodeExtrusionRole : uint8_t
|
||||
SupportMaterialInterface,
|
||||
WipeTower,
|
||||
Custom,
|
||||
// ORCA
|
||||
BottomSurface,
|
||||
InternalBridgeInfill,
|
||||
Brim,
|
||||
SupportTransition,
|
||||
Mixed,
|
||||
COUNT
|
||||
};
|
||||
|
||||
|
||||
@@ -370,7 +370,11 @@ public:
|
||||
EGCodeExtrusionRole::InternalInfill, EGCodeExtrusionRole::SolidInfill, EGCodeExtrusionRole::TopSolidInfill,
|
||||
EGCodeExtrusionRole::Ironing, EGCodeExtrusionRole::BridgeInfill, EGCodeExtrusionRole::GapFill,
|
||||
EGCodeExtrusionRole::Skirt, EGCodeExtrusionRole::SupportMaterial, EGCodeExtrusionRole::SupportMaterialInterface,
|
||||
EGCodeExtrusionRole::WipeTower, EGCodeExtrusionRole::Custom }) const;
|
||||
EGCodeExtrusionRole::WipeTower, EGCodeExtrusionRole::Custom,
|
||||
// ORCA
|
||||
EGCodeExtrusionRole::BottomSurface, EGCodeExtrusionRole::InternalBridgeInfill, EGCodeExtrusionRole::Brim,
|
||||
EGCodeExtrusionRole::SupportTransition, EGCodeExtrusionRole::Mixed
|
||||
}) const;
|
||||
//
|
||||
// Return the size of the used cpu memory, in bytes
|
||||
//
|
||||
|
||||
@@ -61,7 +61,12 @@ struct Settings
|
||||
true, // SupportMaterial
|
||||
true, // SupportMaterialInterface
|
||||
true, // WipeTower
|
||||
true // Custom
|
||||
true, // Custom
|
||||
// ORCA
|
||||
true, // BottomSurface
|
||||
true, // InternalBridgeInfill
|
||||
true, // Brim
|
||||
true, // SupportTransition
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -295,7 +295,12 @@ static const std::array<Color, size_t(EGCodeExtrusionRole::COUNT)> DEFAULT_EXTRU
|
||||
{ 0, 255, 0 }, // SupportMaterial
|
||||
{ 0, 128, 0 }, // SupportMaterialInterface
|
||||
{ 179, 227, 171 }, // WipeTower
|
||||
{ 94, 209, 148 } // Custom
|
||||
{ 94, 209, 148 }, // Custom
|
||||
// ORCA
|
||||
{ 102, 92, 199 }, // BottomSurface
|
||||
{ 77, 128, 186 }, // InternalBridgeInfill
|
||||
{ 0, 59, 110 }, // Brim
|
||||
{ 0, 64, 0 }, // SupportTransition
|
||||
} };
|
||||
|
||||
static const std::array<Color, size_t(EOptionType::COUNT)> DEFAULT_OPTIONS_COLORS{ {
|
||||
@@ -1019,7 +1024,9 @@ void ViewerImpl::load(GCodeInputData&& gcode_data)
|
||||
v.role != EGCodeExtrusionRole::SupportMaterial &&
|
||||
v.role != EGCodeExtrusionRole::SupportMaterialInterface &&
|
||||
v.role != EGCodeExtrusionRole::WipeTower &&
|
||||
v.role != EGCodeExtrusionRole::Custom) {
|
||||
v.role != EGCodeExtrusionRole::Custom &&
|
||||
v.role != EGCodeExtrusionRole::Brim &&
|
||||
v.role != EGCodeExtrusionRole::SupportTransition) {
|
||||
m_cog_marker.update(0.5f * (v.position + m_vertices[i - 1].position), v.weight);
|
||||
}
|
||||
#endif // VGCODE_ENABLE_COG_AND_TOOL_MARKERS
|
||||
|
||||
@@ -110,7 +110,11 @@ public:
|
||||
EGCodeExtrusionRole::InternalInfill, EGCodeExtrusionRole::SolidInfill, EGCodeExtrusionRole::TopSolidInfill,
|
||||
EGCodeExtrusionRole::Ironing, EGCodeExtrusionRole::BridgeInfill, EGCodeExtrusionRole::GapFill,
|
||||
EGCodeExtrusionRole::Skirt, EGCodeExtrusionRole::SupportMaterial, EGCodeExtrusionRole::SupportMaterialInterface,
|
||||
EGCodeExtrusionRole::WipeTower, EGCodeExtrusionRole::Custom }) const;
|
||||
EGCodeExtrusionRole::WipeTower, EGCodeExtrusionRole::Custom,
|
||||
// ORCA
|
||||
EGCodeExtrusionRole::BottomSurface, EGCodeExtrusionRole::InternalBridgeInfill, EGCodeExtrusionRole::Brim,
|
||||
EGCodeExtrusionRole::SupportTransition, EGCodeExtrusionRole::Mixed
|
||||
}) const;
|
||||
|
||||
bool is_option_visible(EOptionType type) const;
|
||||
void toggle_option_visibility(EOptionType type);
|
||||
|
||||
Reference in New Issue
Block a user