Commit Graph

134 Commits

Author SHA1 Message Date
lane.wei d5a59a5fde ENH: CLI: add layer range support for assembled object
JIRA: no jira
Change-Id: I03456997a1a7c38a73ebbcacfa3edff04b50fcb9
2024-06-11 18:17:08 +08:00
lane.wei dd9af771c2 ENH: CLI: add logic to set different in process settings
JIRA: no-jira
Change-Id: Ie05d43f1699c55bab817ed3b639f0fc3ac6431d6
2024-06-11 18:17:08 +08:00
lane.wei 6fa6a1742c ENH: general: reduce log level of some detailed logs
jira: no-jira
Change-Id: I8b074812bf21d982b829f9bdcc65af3996b42eb2
(cherry picked from commit a300bb47e73a25d6851e04efdc7b7a4401b1cda6)
2024-05-13 09:20:46 +08:00
zhou.xu e3407b3c17 NEW:import vertex and mtl color from obj file
Jira: STUDIO-6805

Change-Id: Iaacb13ee2451effdb83e5aba4b7fe1637b7fc95f
2024-04-23 20:07:49 +08:00
xun.zhang 2ff0581cdd ENH: add filament id in slice info
jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ic5fe4632bca8acacc9ffd072ee2ed207c1da37aa
2024-04-23 20:07:49 +08:00
lane.wei 37d49a4bf5 FIX: CLI: fix the crash issue caused by get_min_flush_volumes
JIRA: no jira
Change-Id: I0d5bfd605e51ebddac8fddc4d83dab5055b0fbf2
2024-04-23 20:07:49 +08:00
xun.zhang 5b834000f6 ENH: refine retraction before cut
1. Add filament retraction before cut control

jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ifcb087c9791c0461b793ef811b21ebd4c007d880
2024-04-08 19:50:03 +08:00
Leon Fisher-Skipper 0cd8e00df3 NEW:reducing purge through retracting filament
1.reducing purge through retracting filament.Currently only
applicable to X&P series

github: PR#3100

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: Ie328039872e50e699dc5e5082fa99f68ac5f5fd1
2024-03-25 15:29:19 +08:00
lane.wei bb04bacf63 ENH: CLI: add version check logic
add option allow_newer_file

Change-Id: I8e8e4a45f77ebdd6dae6189841e4a9952e95ca82
2024-03-25 15:29:19 +08:00
lane.wei eb06a769b3 ENH: CLI: reset plate_to_slice to 0 when slicing stls
github: https://github.com/bambulab/BambuStudio/issues/3453

Change-Id: I5c740f3435896ff132f1ad8c527b78744402cb51
2024-03-25 15:29:19 +08:00
lane.wei f2f8c13208 FIX: CLI: fix an arrange issue when duplicate failed
restore the wipe_tower position to original when duplicate fail

JIRA: MAK-2638
Change-Id: I355056f1d87648cc1f6aafa15a98ff569359b44f
2024-03-25 15:29:19 +08:00
lane.wei 14d1297bbf ENH: CLI: add logic to support skip pick images
1. skip_useless_pick support
2. fix the relation incorrect issue between plates and objects

JIRA: no-jira

Change-Id: I8aba229ca99292914583a1bbd036c2d8421b414d
2024-03-25 10:42:29 +08:00
chunmao.guo eaf5748742 FIX: set WEBKIT_DISABLE_COMPOSITING_MODE=1 for linux gtk
Change-Id: I8a500585ca815948bab1210578ba5c45858ed78e
Jira: STUDIO-5199
2024-03-25 10:42:29 +08:00
maosheng.wei dc47541220 FIX: add log for base_id and filament_id
github: #3087

Change-Id: Iebfbd0f224fce49f33fc81c71e6108f6e3abb5ff
2024-03-25 10:42:29 +08:00
lane.wei 4579623c18 ENH: CLI: add mk information support
JIRA: no jira
Change-Id: Idd89b143d439de50d9f52eb8aec95b262d66875d
2024-03-25 10:42:29 +08:00
lane.wei 91036d0b28 FIX: CLI: fix the wipe tower issue while mapping to one filament
JIRA: STUDIO-5550
Change-Id: I0b8d3af09d16bdfc45cdc5951d182f7e33dc9b93
2023-12-14 22:08:53 +08:00
lane.wei 2631ce1d7c ENH: CLI: allow height shrink when printer switch
to let the error generated at validate
JIRA: no jira

Change-Id: I94db90db858659a9254dfdc0a6eed04fd40d3768
2023-12-14 22:08:53 +08:00
lane.wei 59e67c0b10 ENH: CLI: refine some logic
1. set wipe tower position to default when duplicate object
2. add cli_safe check logic when switch printers

JIRA: no jira
Change-Id: Iebe62f8be6acd6f44743abf3b0fe92ec04c94197
2023-12-14 22:08:53 +08:00
maosheng.wei 82fcd8122d FIX: [5451]Directly crash when memory is low
Jira: 5451

Change-Id: I5c75994e2bd556bec7ce8de6be44888e6924ff56
2023-12-14 22:08:53 +08:00
lane.wei b0842857ca FIX: CLI: fix the wipe tower disappear issue
JIRA: no jira
Change-Id: I547a8468b0bea06912d5d9ceee1c8deead85e28f
2023-12-14 22:08:53 +08:00
lane.wei 3aa1539339 ENH: CLI: re-compute flush_volumes_matrix when it is missed
Change-Id: Ie8f53c6bef003b1434de02ea14de5787b376484f
2023-11-30 09:51:52 +08:00
lane.wei a958f2f576 FIX: CLI: add object config when assemble
JIRA: no jira
Change-Id: I945f820fb58f2f643170b4b0b66742f6bbbdfd29
2023-11-30 09:51:52 +08:00
lane.wei d0a2cc4141 ENH: CLI: remove the warning of layer height
JIRA: no jira
Change-Id: Idaceee4f52611479fc3f4238d016d891b4dc8cd1
2023-11-22 08:23:38 +08:00
lane.wei fc24aa6ead FIX: CLI: fix the slicing issue while only one object with multicolor using seq-print
JIRA: no-jira
Change-Id: Iea2d23ff8e484bf2fd58aa2f596a8e4e4292fe39
2023-11-22 08:23:38 +08:00
lane.wei 72989c8a2f ENH: CLI: skip layer height limit validate when slicing for existing models
JIRA: no jira
Change-Id: I1444a28b500ca7d08ed2606eecfa5cfaf261105e
2023-11-22 08:23:38 +08:00
lane.wei 6412bb9b4d ENH: CLI: support load_assemble_list
JIRA: STUDIO-4848
Change-Id: Ife11533740988331ea71eac86c370e625970cb8b
2023-11-22 08:23:38 +08:00
lane.wei ccdb03c873 ENH: CLI: clear custom gcodes when skip_modified_gcodes
JIRA: STUDIO-5112
Change-Id: I2e7346d2ac57519029a4e80e5492c34d3d91ed77
2023-11-09 10:09:10 +08:00
lane.wei 48644e1fb4 ENH: CLI: add some params to support more functions
1. uptodate_filaments to support update the original filaments to newest config
2. allow_rotations/avoid_extrusion_cali_region for auto-arrange
3. skip_modified_gcodes to support skip modified gcodes

JIRA: STUDIO-5112
Change-Id: I95c09af1b5462cce3bf27aea32228d6d1d1d201d
2023-11-09 10:09:10 +08:00
lane.wei 6f8f0b1b7a ENH: CLI: disable wipetower when all filaments mapped to one
JIRA: STUDIO-4899
Change-Id: I8dc8883fc5a70089d3e21dc82faf04f12532092a
(cherry picked from commit 7e21f8ef84e7d96ed2668cd8a4f67e6376e96c74)
2023-11-09 10:09:10 +08:00
Arthur 95430ee68d NEW: add some cli options to support more function
1. Option "assemble" assembles multiple input meshes into a single object.
2. Option "load_filament_ids" sets filament ids for each loaded object.
3. Option "clone_objects" add multiple copies for each loaded object

Jira: STUDIO-4848

Change-Id: I707b48767a7c978118490398da440f0fb54351fa
(cherry picked from commit 8ddb456375be1abc6a0f692096068d8eda89b0eb)
2023-11-09 10:09:10 +08:00
lane.wei abd220dadd ENH: CLI: refine some texts for slicing errors
JIRA: no jira
Change-Id: I373723290777b8097eb70bce7c26463044c9aaf9
2023-11-09 10:09:10 +08:00
lane.wei 1a8bd061d1 ENH: CLI: add logic to check the max/min layer height
JIRA: no jira
Change-Id: I71ae31b6cb3be9c732ffc1eda4e67092eb5b8666
(cherry picked from commit d5170e15613233685d4806af500df605c73b8525)
2023-11-09 10:09:10 +08:00
Stone Li e76f7ae0c9 NEW: add model_id in sliced_info.config
JIRA: STUDIO-4824

add model_id to each plate config

Change-Id: Icdc234fe3b17493016037128f1c187b14014276a
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-11-09 10:09:10 +08:00
lane.wei c6af13a612 ENH: CLI: retry pipes no matter which error found
JIRA: no jira
Change-Id: Ic49dd1a55e83485eb72b5be97ba9509261f6c133
2023-11-09 10:09:10 +08:00
lane.wei 4d1eae0046 ENH: CLI: return error when the printable size exceeds the default one
also refine some logs

JIRA: XXXX
Change-Id: Ibec090e98b8d93b1396e691ecff97ced13b1d8c8
2023-11-01 09:33:21 +08:00
lane.wei 5f5fde3651 ENH: CLI: add time estimation for non-cache slicing
JIRA: XXXX
Change-Id: Ifed2d70e8d6355087694df96e413cdbcf792d6d9
2023-11-01 09:33:21 +08:00
Arthur 590444d92f FIX: cli arrange failed in some cases
1. set different bed_shrink for seq_print and layered print
2. fix the bug that seq_print arranging may get collision with exclusion
   area.
3. remove unused functions.

Jira: STUDIO-4663

Change-Id: I8b726704cca33fe37bb3cb7c4502963a9ad8d16b
2023-11-01 09:33:21 +08:00
lane.wei caedbfd24c FIX: CLI: fix the wipe tower depth not correct issue
estimate the wipe tower depth using more logic
JIRA: MAK-XXXX

Change-Id: Ieb66ebb7e75b20e61b7c0cb8e60496287434d31b
(cherry picked from commit 6b4d9d054fa52f7ff8ffd16461f686f54cab97fb)
2023-11-01 09:33:21 +08:00
lane.wei 35b15a1aa1 ENH: CLI: refine some logs
JIRA: STUDIO-XXXX
Change-Id: Ic61f7fbffabc28a76ac186c33182b9284c1c2da1
2023-11-01 09:33:21 +08:00
lane.wei b0c9b14b0d ENH: CLI: add more logic to improve slicing
1. only report slicing error when no-check not set
2. skip duplicate when under spiral_mode with by-layer print

JIRA: STUDIO-XXX
Change-Id: I03bf7f45b4cc43dcc1fd2ffb6b53321fe3324dad
(cherry picked from commit 083684c01194787f54fb88787b76c1e16179c6de)
2023-11-01 09:33:21 +08:00
lane.wei 9de7561155 FIX: CLI: refine some logic
1. sometimes the pipe open failed,
add some retry logic;
2. return the reason when no-check=1 while validate fail;
3. return an error when duplicate object under spiral-mode when not using
   by-object print sequence

JIRA: MAK-xxxx
Change-Id: I3792d89dbbe560a8febe0f0154bccb8f573959a5
2023-11-01 09:33:21 +08:00
lane.wei ec8d681981 ENH: 3mf: improve some logic
1. skip file including /../
2. use snprintf instead of sprintf

JIRA: jira-xxxx
Change-Id: I6695dc11f9f4af4318038e6db5c219fd14e73aef
2023-11-01 09:33:21 +08:00
shuai.liu a939c6e434 ENH: auto adapt distance in arrangement
JIRA: STUDIO-4408
1. if min_obj_distance is 0, use auto mode
2. normal support, 5mm gap, tree support, 22mm gap, no support, 0.1mm
   gap

Change-Id: I906ccf267bef1f33a946572614d658fd50cfcda3
(cherry picked from commit 771efc935da625d8faa4cc5b77fedc5055f93c6c)
2023-11-01 09:33:21 +08:00
lane.wei 1340eccb87 FIX: CLI: disable wipe tower under sequent-print mode
JIRA: STUDIO-4409
Change-Id: I7a3552180a31613244afeebdfcd9bc6b4d8b13b5
2023-11-01 09:33:21 +08:00
lane.wei ae7b205e10 ENH: 3mf: refine the rels to correct link
JIRA: STUDIO-4231
Change-Id: I02ff6343124ef2ea3642e5799469249538a4b97f
2023-11-01 09:33:21 +08:00
Arthur 641a4fd1f2 ENH: add load_model_objects_and_custom_gcodes
Add cmd line option to pass layer change gcode.
This is useful for lithophane auto change colors.
Cmd: --custom-gcode custom_gcode_toolchange.json

Examples of the input json file can be found in the jira.

Jira: STUDIO-4070

Change-Id: I5beb5ff7d6d81028e95013e79f955e498cd3ba30
2023-11-01 09:11:19 +08:00
lane.wei 2a6bb02d60 FIX: CLI: fix the thumbnail color not correct issue
JIRA: MAK-1812
Change-Id: I61832ffeea75b9423d85ccd81d5602a3e7d288b8
2023-11-01 09:11:19 +08:00
lane.wei c2f8993828 ENH: CLI: add support of rotate
JIRA: STUDIO-4183
Change-Id: I091cc3142ce867d2ac75ba27b3cb2e4e569c9681
2023-11-01 09:11:19 +08:00
lane.wei 5001a02409 FIX: CLI: fix the compiling issue under windows
JIRA: STUDIO-4217
Change-Id: Id937f921aa6d1f5cbc2300ba7395df71c3cd147a
2023-11-01 09:11:19 +08:00
lane.wei 60333adc96 ENH: CLI: optimize the logic for message
1. treat the critical slicing warnings as error
2. save more information into result
including the triangle counts and the non-critical warnings

JIRA: STUDIO-4217

Change-Id: I25b746d06c9a1ef2d642c67852577982a2986322
2023-11-01 09:11:19 +08:00