ENH: unify multi-object copy with single copy

Also adapt empty cell stride with object size plus 1mm.

Change-Id: I47ac98bede196d636ebb3da549c16e393756de0a
This commit is contained in:
Arthur 2022-09-09 16:36:00 +08:00 committed by Lane.Wei
parent b71917b28c
commit 9edc90704a
3 changed files with 17 additions and 14 deletions

View file

@ -831,11 +831,11 @@ public:
double get_size_proportional_to_max_bed_size(double factor) const;
// BBS: get empty cells to put new object
// start_point={-1,-1} means sort from bed center
std::vector<Vec2f> get_empty_cells(const Vec2f start_point);
// start_point={-1,-1} means sort from bed center, step is the unscaled x,y stride
std::vector<Vec2f> get_empty_cells(const Vec2f start_point, const Vec2f step = {10, 10});
// BBS: get the nearest empty cell
// start_point={-1,-1} means sort from bed center
Vec2f get_nearest_empty_cell(const Vec2f start_point);
Vec2f get_nearest_empty_cell(const Vec2f start_point, const Vec2f step = {10, 10});
void set_cursor(ECursorType type);
void msw_rescale();