mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 07:12:07 +00:00
NEW: add new tree support style "Tree Slim"
1. Add a new style "Tree Slim". If enabled, tree support branches are merged more aggressively, and the support volume is minimized. 2. Enable support style, add back Snug for normal support. 3. Remove hybrid(auto) type and use "Tree Hybrid" style to represent it. 4. Fix a bug in plan_layer_heights that may generate empty layers when layer height is set to 0.3mm. 5. Fix a bug where no raft is generated if there is no overhang. 6. Fix the bug where no bottom interface or bottom gap is generated when tree slim is selected. 7. Use physical distance to calc radius Change-Id: Iacd57018ae5496cdc9acd28551c44d1c88c53fe0
This commit is contained in:
@@ -98,7 +98,7 @@ enum SupportMaterialPattern {
|
||||
};
|
||||
|
||||
enum SupportMaterialStyle {
|
||||
smsGrid, smsSnug,
|
||||
smsDefault, smsGrid, smsSnug, smsTreeSlim, smsTreeStrong, smsTreeHybrid
|
||||
};
|
||||
|
||||
enum SupportMaterialInterfacePattern {
|
||||
@@ -107,7 +107,19 @@ enum SupportMaterialInterfacePattern {
|
||||
|
||||
// BBS
|
||||
enum SupportType {
|
||||
stNormalAuto, stTreeAuto, stHybridAuto, stNormal, stTree
|
||||
stNormalAuto, stTreeAuto, stNormal, stTree
|
||||
};
|
||||
inline bool is_tree(SupportType stype)
|
||||
{
|
||||
return std::set<SupportType>{stTreeAuto, stTree}.count(stype) != 0;
|
||||
};
|
||||
inline bool is_tree_slim(SupportType type, SupportMaterialStyle style)
|
||||
{
|
||||
return is_tree(type) && (style==smsDefault || style==smsTreeSlim);
|
||||
};
|
||||
inline bool is_auto(SupportType stype)
|
||||
{
|
||||
return std::set<SupportType>{stNormalAuto, stTreeAuto}.count(stype) != 0;
|
||||
};
|
||||
|
||||
enum SeamPosition {
|
||||
|
||||
Reference in New Issue
Block a user