mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
Adjust ZAA configuration
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "format.hpp"
|
||||
#include "AABBTreeLines.hpp"
|
||||
|
||||
#include <cstddef>
|
||||
#include <float.h>
|
||||
#include <iterator>
|
||||
#include <mutex>
|
||||
@@ -715,6 +716,21 @@ void PrintObject::ironing()
|
||||
}
|
||||
}
|
||||
|
||||
bool PrintObject::need_z_contouring() const
|
||||
{
|
||||
if (this->config().zaa_enabled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t num_regions = this->num_printing_regions();
|
||||
for (size_t region_id = 0; region_id < num_regions; region_id++) {
|
||||
if (this->printing_region(region_id).config().zaa_enabled)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void PrintObject::contour_z()
|
||||
{
|
||||
if (!this->set_started(posContouring)) {
|
||||
|
||||
Reference in New Issue
Block a user