mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 13:36:31 +01:00
Optimization in Polyline instantiation
This commit is contained in:
1 parent
27c421c27f
commit
8061cc6e30
14 files changed
+40
-45
No files matched your search
@@ -83,7 +83,7 @@ sub diff {
|
||||
$clipper->add_subject_polygons($subject);
|
||||
$clipper->add_clip_polygons($safety_offset ? safety_offset($clip) : $clip);
|
||||
return [
|
||||
map Slic3r::Polygon->new($_),
|
||||
map Slic3r::Polygon->new(@$_),
|
||||
@{ $clipper->execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO) },
|
||||
];
|
||||
}
|
||||
@@ -126,7 +126,7 @@ sub intersection {
|
||||
$clipper->add_subject_polygons($subject);
|
||||
$clipper->add_clip_polygons($safety_offset ? safety_offset($clip) : $clip);
|
||||
return [
|
||||
map Slic3r::Polygon->new($_),
|
||||
map Slic3r::Polygon->new(@$_),
|
||||
@{ $clipper->execute(CT_INTERSECTION, $jointype, $jointype) },
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user