ENH: improve archor of internal bridge

Add loop inside sparse infill of lower layer
to provide archor for internal bridge.

This option controls how many lower layers generate
loop path.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ifdb6db9090115732aa2cacf5d155b587a10e18fc
(cherry picked from commit 4fdb87ecd5c2e680f6bad2d018ba39cd05f787ce)
This commit is contained in:
salt.wei 2022-11-15 20:20:48 +08:00 committed by Lane.Wei
parent 08494b5f6f
commit 588f18ac58
18 changed files with 141 additions and 15 deletions

View file

@ -37,6 +37,12 @@ public:
for (Surface &surface : this->surfaces)
surface.surface_type = type;
}
//BBS
void change_to_new_type(SurfaceType old_type, SurfaceType new_type) {
for (Surface& surface : this->surfaces)
if (surface.surface_type == old_type)
surface.surface_type = new_type;
}
void clear() { surfaces.clear(); }
bool empty() const { return surfaces.empty(); }