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:
parent
b19c742455
commit
4eb21d4787
1 changed files with 12 additions and 19 deletions
|
@ -989,12 +989,6 @@ bool GLVolumeCollection::check_outside_state(const DynamicPrintConfig* config, M
|
||||||
#if ENABLE_FIX_SINKING_OBJECT_OUT_OF_BED_DETECTION
|
#if ENABLE_FIX_SINKING_OBJECT_OUT_OF_BED_DETECTION
|
||||||
bool contained = false;
|
bool contained = false;
|
||||||
bool intersects = 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();
|
const BoundingBoxf3& bb = volume->transformed_non_sinking_bounding_box();
|
||||||
#if ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
|
#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;
|
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);
|
contained = print_volume.contains(bb);
|
||||||
intersects = print_volume.intersects(bb);
|
intersects = print_volume.intersects(bb);
|
||||||
#endif // ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
|
#endif // ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
const BoundingBoxf3& bb = volume->transformed_convex_hull_bounding_box();
|
const BoundingBoxf3& bb = volume->transformed_convex_hull_bounding_box();
|
||||||
bool contained = print_volume.contains(bb);
|
bool contained = print_volume.contains(bb);
|
||||||
|
|
Loading…
Add table
Reference in a new issue