mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
ENH: use different margin for top/bottom and bottom bridge
Too large margin for bridge will cause overflow for shell model. But too small margin for top/bottom will cause infill area discontinuous. Using different margin for top/bottom and bridge to make a balance. Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I9ba8388b85b978ae39caf2df04f96c704b5d2e05
This commit is contained in:
@@ -70,12 +70,8 @@ static constexpr double SUPPORT_RESOLUTION = 0.05;
|
||||
static constexpr double INSET_OVERLAP_TOLERANCE = 0.4;
|
||||
// 3mm ring around the top / bottom / bridging areas.
|
||||
//FIXME This is quite a lot.
|
||||
// BBS: 3mm is too large and will cause overflow when printing object which likes shell.
|
||||
// We decided to reduce this value according to superslicer.
|
||||
// The right way is that area should not be enlarged. But should find arched point at last layer, expecially for
|
||||
// bridge area.
|
||||
//static constexpr double EXTERNAL_INFILL_MARGIN = 3;
|
||||
static constexpr double EXTERNAL_INFILL_MARGIN = 1;
|
||||
static constexpr double EXTERNAL_INFILL_MARGIN = 3;
|
||||
static constexpr double BRIDGE_INFILL_MARGIN = 1;
|
||||
//FIXME Better to use an inline function with an explicit return type.
|
||||
//inline coord_t scale_(coordf_t v) { return coord_t(floor(v / SCALING_FACTOR + 0.5f)); }
|
||||
#define scale_(val) ((val) / SCALING_FACTOR)
|
||||
|
||||
Reference in New Issue
Block a user