mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
switch res for large printer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user