ENH: CLI: add logic to translate objects between different bed size

1. from small bed to larger one, auto translate the models based on center;
2. from large bed to smaller one, report an error

Change-Id: I7b7fac1e370ff4daca82c4f36977a86fca268625
This commit is contained in:
lane.wei 2023-07-22 17:42:37 +08:00 committed by Lane.Wei
parent bb4f425027
commit 387f8838f2
2 changed files with 89 additions and 23 deletions

View file

@ -36,6 +36,9 @@
#define CLI_PROCESS_NOT_COMPATIBLE -17
#define CLI_INVALID_VALUES_IN_3MF -18
#define CLI_POSTPROCESS_NOT_SUPPORTED -19
#define CLI_PRINTABLE_SIZE_REDUCED -20
#define CLI_OBJECT_ARRANGE_FAILED -21
#define CLI_OBJECT_ORIENT_FAILED -22
#define CLI_NO_SUITABLE_OBJECTS -50
@ -54,7 +57,6 @@
#define CLI_OBJECT_COLLISION_IN_SEQ_PRINT -63
#define CLI_OBJECT_COLLISION_IN_LAYER_PRINT -64
#define CLI_SLICING_ERROR -100
#define CLI_GCODE_PATH_CONFLICTS -101