Measure short objects and the compacted tower clearance by the printed top (#17445)

`is_all_objects_are_short()` and both "No sparse layers" compacted tower clearance checks now measure an object by its top above the bed, with the raft, Z offset and Z shrinkage included. Before, a short object on a raft still counted as short in a by-object print, and the raft was left out of an object's rise above the compacted tower. These checks and the by-object check now read the new `PrintObject::print_z_max()`. Belt printers use the model's own top.
This commit is contained in:
Kuzuri authored and GitHub committed 2026-11-10 18:19:17 -06:00
1 parent fb0c9884c9
commit 7243d15ea2
4 files changed
+111 -15

No files matched your search

+5
View File
@@ -4478,6 +4478,11 @@ void PrintObject::generate_support_preview()
profiler.duration2 = (ts3 - ts2).total_milliseconds();
}
double PrintObject::print_z_max() const
{
return this->print()->config().belt_printer.value ? m_max_z : scale_(m_slicing_params.object_print_z_max);
}
void PrintObject::update_slicing_parameters()
{
// Orca: updated function call for XYZ shrinkage compensation