Tech ENABLE_FIX_SINKING_OBJECT_OUT_OF_BED_DETECTION - Enable detection of collision with circular printbed also for SLA printers

This commit is contained in:
enricoturri1966 2021-09-30 10:35:53 +02:00
parent b19c742455
commit 4eb21d4787

View File

@ -989,12 +989,6 @@ bool GLVolumeCollection::check_outside_state(const DynamicPrintConfig* config, M
#if ENABLE_FIX_SINKING_OBJECT_OUT_OF_BED_DETECTION
bool contained = false;
bool intersects = false;
if (GUI::wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA) {
const BoundingBoxf3& bb = volume->transformed_convex_hull_bounding_box();
contained = print_volume.contains(bb);
intersects = print_volume.intersects(bb);
}
else {
const BoundingBoxf3& bb = volume->transformed_non_sinking_bounding_box();
#if ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
const indexed_triangle_set& its = GUI::wxGetApp().plater()->model().objects[volume->object_idx()]->volumes[volume->volume_idx()]->mesh().its;
@ -1010,7 +1004,6 @@ bool GLVolumeCollection::check_outside_state(const DynamicPrintConfig* config, M
contained = print_volume.contains(bb);
intersects = print_volume.intersects(bb);
#endif // ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
}
#else
const BoundingBoxf3& bb = volume->transformed_convex_hull_bounding_box();
bool contained = print_volume.contains(bb);