mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 19:28:14 -06:00
Ported Layer::maker_perimeters() to XS
This commit is contained in:
parent
3a9cf91f83
commit
4f8a18bbad
8 changed files with 114 additions and 83 deletions
|
@ -569,6 +569,17 @@ union_ex(const Slic3r::Polygons &subject, bool safety_offset)
|
|||
return expp;
|
||||
}
|
||||
|
||||
Slic3r::ExPolygons
|
||||
union_ex(const Slic3r::Surfaces &subject, bool safety_offset)
|
||||
{
|
||||
Polygons pp;
|
||||
for (Slic3r::Surfaces::const_iterator s = subject.begin(); s != subject.end(); ++s) {
|
||||
Polygons spp = *s;
|
||||
pp.insert(pp.end(), spp.begin(), spp.end());
|
||||
}
|
||||
return union_ex(pp, safety_offset);
|
||||
}
|
||||
|
||||
void union_(const Slic3r::Polygons &subject1, const Slic3r::Polygons &subject2, Slic3r::Polygons* retval, bool safety_offset)
|
||||
{
|
||||
Polygons pp = subject1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue