mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-18 03:35:54 +08:00
perf improvement for extra_periemters
This commit is contained in:
parent
4cfefe8ac1
commit
9219781ce0
@ -218,8 +218,8 @@ void PerimeterGenerator::process()
|
|||||||
// improvement for future: find a way to add perimeters only where it's needed.
|
// improvement for future: find a way to add perimeters only where it's needed.
|
||||||
bool has_overhang = false;
|
bool has_overhang = false;
|
||||||
if (this->config->extra_perimeters && !last.empty() && !overhangs_unsupported.empty()) {
|
if (this->config->extra_perimeters && !last.empty() && !overhangs_unsupported.empty()) {
|
||||||
size_t unsupported_test = intersection(overhangs_unsupported, last).size();
|
overhangs_unsupported = intersection_ex(overhangs_unsupported, last);
|
||||||
if (unsupported_test > 0) {
|
if (overhangs_unsupported.size() > 0) {
|
||||||
//add fake perimeters here
|
//add fake perimeters here
|
||||||
has_overhang = true;
|
has_overhang = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user