mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Workaround for 3D view and GUI buttons not in synch when object's size is almost identical to print volume's size
This commit is contained in:
parent
f8b1dc5506
commit
cd3be74e3b
4 changed files with 29 additions and 4 deletions
|
@ -463,7 +463,7 @@ bool Model::fits_print_volume(const DynamicPrintConfig* config) const
|
|||
BoundingBoxf3 print_volume(Pointf3(unscale(bed_box_2D.min.x), unscale(bed_box_2D.min.y), 0.0), Pointf3(unscale(bed_box_2D.max.x), unscale(bed_box_2D.max.y), config->opt_float("max_print_height")));
|
||||
// Allow the objects to protrude below the print bed
|
||||
print_volume.min.z = -1e10;
|
||||
return print_volume.contains(transformed_bounding_box());
|
||||
return print_volume.contains_quantized(transformed_bounding_box());
|
||||
}
|
||||
|
||||
bool Model::fits_print_volume(const FullPrintConfig &config) const
|
||||
|
@ -474,7 +474,7 @@ bool Model::fits_print_volume(const FullPrintConfig &config) const
|
|||
BoundingBoxf3 print_volume(Pointf3(unscale(bed_box_2D.min.x), unscale(bed_box_2D.min.y), 0.0), Pointf3(unscale(bed_box_2D.max.x), unscale(bed_box_2D.max.y), config.max_print_height));
|
||||
// Allow the objects to protrude below the print bed
|
||||
print_volume.min.z = -1e10;
|
||||
return print_volume.contains(transformed_bounding_box());
|
||||
return print_volume.contains_quantized(transformed_bounding_box());
|
||||
}
|
||||
|
||||
unsigned int Model::get_auto_extruder_id()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue