mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fine tuning parameters and fixing pad wings when greater gaps are used.
This commit is contained in:
parent
c80aae1bdb
commit
12396c3051
8 changed files with 64 additions and 33 deletions
|
@ -578,23 +578,31 @@ struct Pad {
|
|||
float(cfg.min_wall_height_mm + cfg.min_wall_thickness_mm),
|
||||
0.1f, pcfg.throw_on_cancel);
|
||||
|
||||
// We don't need the holes for the base plate from the supports
|
||||
for (const ExPolygon &bp : platetmp) basep.emplace_back(bp.contour);
|
||||
for (const ExPolygon &bp : modelbase) basep.emplace_back(bp.contour);
|
||||
|
||||
|
||||
if(pcfg.embed_object) {
|
||||
|
||||
auto modelbase_sticks = modelbase;
|
||||
for(auto& poly : modelbase_sticks)
|
||||
sla::offset_with_breakstick_holes(
|
||||
|
||||
if (pcfg.embed_object.object_gap_mm > 0.0)
|
||||
modelbase_sticks
|
||||
= offset_ex(modelbase_sticks,
|
||||
coord_t(pcfg.embed_object.object_gap_mm
|
||||
/ SCALING_FACTOR));
|
||||
|
||||
for(auto& poly : modelbase_sticks) {
|
||||
basep.emplace_back(poly);
|
||||
sla::breakstick_holes(
|
||||
poly,
|
||||
pcfg.embed_object.object_gap_mm, // padding
|
||||
pcfg.embed_object.stick_stride_mm,
|
||||
pcfg.embed_object.stick_width_mm,
|
||||
pcfg.embed_object.stick_penetration_mm);
|
||||
}
|
||||
|
||||
create_base_pool(basep, tmesh, modelbase_sticks, cfg);
|
||||
} else {
|
||||
for (const ExPolygon &bp : modelbase) basep.emplace_back(bp.contour);
|
||||
create_base_pool(basep, tmesh, {}, cfg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue