switch res for large printer

This commit is contained in:
SoftFever 2024-05-12 23:35:41 +08:00
parent 3e9a46c5bb
commit 5daecf3583
21 changed files with 92 additions and 62 deletions

View file

@ -7972,6 +7972,13 @@ bool Plater::priv::show_publish_dlg(bool show)
//BBS: add bed exclude area
void Plater::priv::set_bed_shape(const Pointfs& shape, const Pointfs& exclude_areas, const double printable_height, const std::string& custom_texture, const std::string& custom_model, bool force_as_custom)
{
//Orca: reduce resolution for large bed printer
BoundingBoxf bed_size = get_extents(shape);
if (bed_size.size().maxCoeff() <= LARGE_BED_THRESHOLD)
SCALING_FACTOR = SCALING_FACTOR_INTERNAL;
else
SCALING_FACTOR = SCALING_FACTOR_INTERNAL_LARGE_PRINTER;
//BBS: add shape position
Vec2d shape_position = partplate_list.get_current_shape_position();
bool new_shape = bed.set_shape(shape, printable_height, custom_model, force_as_custom, shape_position);