Non manifold edges calibration bug-fix (#11861)

* fix non manifold edges calib

Update Plater.cpp

* remove unused model

* Model Fix

Co-Authored-By: yw4z <yw4z@outlook.com>

---------

Co-authored-by: yw4z <yw4z@outlook.com>
This commit is contained in:
Rodrigo Faselli 2026-01-16 18:27:22 -03:00 committed by GitHub
parent 9abe42c503
commit eac352f95d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20863 additions and 66981 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -12592,8 +12592,8 @@ void Plater::calib_temp(const Calib_Params& params) {
auto obj_bb = model().objects[0]->bounding_box_exact();
auto block_count = lround((350 - params.end) / 5 + 1);
if(block_count > 0){
// add EPSILON offset to avoid cutting at the exact location where the flat surface is
auto new_height = block_count * 10.0 + EPSILON;
// subtract EPSILON offset to avoid cutting at the exact location where the flat surface is
auto new_height = block_count * 10.0 - EPSILON;
if (new_height < obj_bb.size().z()) {
cut_horizontal(0, 0, new_height, ModelObjectCutAttribute::KeepLower);
}
@ -12619,7 +12619,6 @@ void Plater::calib_max_vol_speed(const Calib_Params& params)
wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor));
if (params.mode != CalibMode::Calib_Vol_speed_Tower)
return;
add_model(false, Slic3r::resources_dir() + "/calib/volumetric_speed/SpeedTestStructure.step");
auto print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config;
@ -12727,7 +12726,7 @@ void Plater::calib_retraction(const Calib_Params& params)
// cut upper
auto obj_bb = obj->bounding_box_exact();
auto height = 1.0 + 0.4 + ((params.end - params.start)) / params.step;
auto height = 1.0 + 0.4 + ((params.end - params.start)) / params.step - EPSILON;
if (height < obj_bb.size().z()) {
cut_horizontal(0, 0, height, ModelObjectCutAttribute::KeepLower);
}