Commit Graph

1536 Commits

Author SHA1 Message Date
maosheng.wei eb9c334c27 FIX: [6510] set nozzle temp incorrectly when popup AMS Setting
Change-Id: I898f0b94794a3d67017b1917ce196c4019f5eb4a
2024-03-25 15:29:19 +08:00
qing.zhang c6f5300f5e FIX: extra seams on path
Jira: 6625

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: If930425d4190a1071608af52e6a5fadec3e89fc0
2024-03-25 15:29:19 +08:00
qing.zhang 3adc997193 FIX: change some set of scarf seam
only check slope overhang on conditional mode
add not apply speed slow down for gloss of print result

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I22f7ea7785aeed5833f28103d51f36be84fc7c56
2024-03-25 15:29:19 +08:00
Arthur 3658c97a94 FIX: sequential_print_clearance_valid not working
not working  correctly with short objects

jira: STUDIO-6489
Change-Id: I33e1a165f448e1c3e272d4045934c63ad345db2f
(cherry picked from commit 9348eaa22a056db5384a38ea966cec9ba4a533a7)
2024-03-25 15:29:19 +08:00
Noisyfox ad89f63fce ENH: Merge Scarf seam method from orca
Jira:none

BBL:Merged scarf seam and
add imorovemnt to improve seam on defalue setting
--as default setting wipe before rectract get good seam on end
--clip slope at start and end
--clip more on inner wall slope start than outer wall
--slowdown slope speed to get better sea
--todo-slope path had error double dE
  reduce it could improve seam,but slope could not stick well.
--check slope path overhang and avoid it while on conditional scarf mode

Co-authored-by: qing.zhang <qing.zhang@BambuLab.com>

Change-Id: I583a1c25e534b2aa5c9d710dcf207aefbea64347
2024-03-25 15:29:19 +08:00
hu.wang 7f63a62a87 NEW:material adaptation in select machine dialog
JIRA:xxxx
Change-Id: I625eac75c88cad804dd3741f750c5ea68a975421
2024-03-25 15:29:19 +08:00
Arthur 9de69035a0 ENH: speedup tree support generation
1. speedup detect_overhangs by skipping sharp tail and cantilever detection if there are too many overhangs.
   jira: STUDIO-3584, STUDIO-2592
2. drop_nodes with precalculation of avoidance and tbb parallel_for_each for all nodes in each layer.
   jira: STUDIO-1814, STUDIO-2381, STUDIO-2639, STUDIO-5020,
3. don't show too many progress messages

Change-Id: Ia4897089c69c235fb7cd8e5fdcf4690086048b31
(cherry picked from commit 9c08e28b5b5342dfdde2c939fc953f143a42a59b)
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
tao wang ef118017cd ENH:support jumping from project to makerworld
jira:[STUDIO-6462]

Change-Id: I35c5612e4aa9f387b30f6fad12419aee2e244217
2024-03-25 15:29:19 +08:00
maosheng.wei 5929a0a431 FIX: fix change nozzle temp in Studio but printer not change
Jira: 6510

Change-Id: Ia0e1ac586ff41ddbabdac0845415e70774299387
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2024-03-25 15:29:19 +08:00
XunZhangBambu c96d472af5 ENH: recover the origin order of prepare infill
1.Change small sparse infill to solid infill after doing expand
introduces too much solid infill.

jira:NEW

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: If8ac07356185729c192d42bae8d9325ebe5fee87
2024-03-25 15:29:19 +08:00
Arthur 40a468be3d FIX: compiling error due to template function deduction
jira: none
Change-Id: Ib2a3f03468b7992defef3ff2298882b4435cabd1
(cherry picked from commit 9efa2ee2e2dcd4d1322afa03c7b7ce05b1d69872)
2024-03-25 15:29:19 +08:00
Arthur 47440f040c FIX: reduce unnecessary small parts of tree supports
1. reduce unnecessary small parts of tree supports
    jira: STUDIO-6506
2. fix the bug that zero height tree support may be generated with synced support layer height.
3. fix the bug that tree nodes' radii may change abruptly
    jira: STUDIO-6326

Change-Id: I38153d136e46bf9d797881cc6ca8803767f46736
(cherry picked from commit 59af0a6c2643169463cf18010ffd75f3aa19b704)
2024-03-25 15:29:19 +08:00
zhou.xu b5db8bc4c3 NEW:modify distance between meshs
Jira: STUDIO-6166
Change-Id: I41ccfebf3b21b9bb21fa0f1f018d5e3146b86e5e
2024-03-25 15:29:19 +08:00
Arthur 29da3bc441 NEW: add support_object_first_layer_gap option
jira: STUDIO-6202
github: #3521

Change-Id: I6f1ce9f5312e9482c0f5bf6ac3215861c501106c
(cherry picked from commit 83027d923a6e67fa0013e5d9f627283c68e996de)
2024-03-25 15:29:19 +08:00
zhimin.zeng 0ba47b8e06 FIX: Color Bleed in slicer
github: 3681 jira: 6450
Change-Id: Icb6274f7ddb238c238c133b95167310b1af905f7
2024-03-25 15:29:19 +08:00
qing.zhang 9b3d7c36ff FIX: error overhang degree mapping
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ifa24aa0cad0a06b09ee62a8be8781188a765d1d0
2024-03-25 15:29:19 +08:00
zhou.xu af9ac3d216 FIX:upgrade scale_feature api
Jira: STUDIO-6460
Change-Id: Icda3218da5bfe3206285681a8dac13e9d14dfc60
2024-03-25 15:29:19 +08:00
zhou.xu af3bf453c1 FIX:show result of plane and circle
Jira: STUDIO-6439
Change-Id: I53b76913593e0b5fcce01a74bc347d3628a3646a
2024-03-25 15:29:19 +08:00
hu.wang b9b1c8872d NEW:hms error code
JIRA: STUDIO-6302
Change-Id: Ia33511f4c636c8ada39ed5a4e52d9b185da9c00b
2024-03-25 15:29:19 +08:00
Arthur cf35d0268f FIX: blockers are not working correctly with organic supports.
jira: STUDIO-6278
Change-Id: If74e611821db25241dd67dfc4a3e44fac557a10d
(cherry picked from commit 76b9b2b7e856f648082cd3a09386775695c6accb)
2024-03-25 15:29:19 +08:00
Arthur c7d12b703e FIX: several issue of organic support
1. raft under organic trees are not generated
2. Studio may crash when generating organic supports for some objects.

jira: STUDIO-6407
Change-Id: I6e7ff2423b9fee95e4a4a85ccc2844549142f0c8
(cherry picked from commit 00db6c241270f5524bf1618109a2b45872073fd0)
2024-03-25 15:29:19 +08:00
qing.zhang c9249e5952 FIX: error varible while calculate overhang speed
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I9381ab26cc3dff7f6c6cdb97c03cc4178a5f2afe
2024-03-25 15:29:19 +08:00
Arthur 22056d5f7e ENH: improve the support of blade-shape overhangs
1. reduce the gap between blade-shape overhang and support
   github: #3667
2. improve sharp tail detection of blade-shape overhangs by introducing
   lslices_extrudable.
   github: #2786, #3367
   jira: STUDIO-5065, STUDIO-6038

Change-Id: I4e899eace1aa28b100a6f4ce2b8d740c317f5530
(cherry picked from commit 08328b848e39c345b6c7b64021d1e0f04df24d08)
2024-03-25 15:29:19 +08:00
zhou.xu 4230ca8372 FIX:fix "Shift+pick point" bug
Jira: STUDIO-6433
Change-Id: Ib333e9c4d27e65968cfc5fc0136c18b1e18254bf
2024-03-25 15:29:19 +08:00
XunZhangBambu fef0f7811b ENH: detect in_head_wrap_zone more precisly
1.Union first layer convex hull with object's bbox to detect whether
model enter head_wrap_detect_zone

jira:NEW

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I11f26967d7421f41e9c824e62794c96591e6ae71
2024-03-25 15:29:19 +08:00
Arthur 58bba45bc2 FIX: improve cantilever detection of tree support
github: #3667
Change-Id: I5fd6d7d5a6e80aaa563f7d033381e6b8cb9093e0
(cherry picked from commit 3f5fdf82dcaa8636d295794a1113aab78f7327af)
2024-03-25 15:29:19 +08:00
zhou.xu 2243747e75 NEW:Support OLTP file
Jira: STUDIO-6421
Change-Id: I58bc94e978e6d2dd136ea370fb01f6ec80e14b23
2024-03-25 15:29:19 +08:00
zhou.xu 983aca7669 FIX:repairing models during cutting allows cancellation
Jira: STUDIO-6308
Change-Id: I217a8e55c0d5fdcc29a33c7e7c3401cc08307561
2024-03-25 15:29:19 +08:00
chunmao.guo 5ed48bbb08 FIX: use old slicer_uuid for client_id
Change-Id: I6c45e83213d613fc28eef04115f9cfb19dea703e
Jira: none
2024-03-25 15:29:19 +08:00
Arthur e7ffe31cb3 FIX: raft of tree support was incorrect
1. Raft was not generated when tree support is selected but enable_support is false.
2. Raft angle and density of tree support was incorrect

github: #3675
Change-Id: Ifd78bf619a28eb03a908e75ad56af4934b6b08b7
(cherry picked from commit 2a448095a2fb4a2abebb0a5c8082a2ddbb635f16)
2024-03-25 15:29:19 +08:00
XunZhangBambu 117a2aa2d9 ENH: do not split top/bottom when shell param is 0
1. When detect surface type,do not detect top/bottom
surface if top/bottom shell layers is zero

jira:STUDIO-5843

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I844b24d061f3fc9aef56dab941140c567340eeae
2024-03-25 15:29:19 +08:00
qing.zhang eace110b33 ENH: update overhang degree method on calssic mode
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I90f6e4c2ef618fdaef00bdaf1ca309893f484c1e
2024-03-25 15:29:19 +08:00
liz.li 3fbc9931cb NEW: vase mode can be applied to one plate
jira: STUDIO-5838

Change-Id: Ifb315f7d79b570aeb7ee31d3495b4d465e3af0c6
2024-03-25 15:29:19 +08:00
XunZhangBambu 7cd2fee5c5 ENH: add note in prepare tab
1. Add filament note,process note,printer note

jira:[NEW]

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I86241a02cf23b54aecda6bdf94e3452cce2d6973
2024-03-25 15:29:19 +08:00
XunZhangBambu ad57d0845b NEW: add more filament types
jira:[NEW]

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: Icbc27cf423ed7ab373107aa711430d6321105def
2024-03-25 15:29:19 +08:00
chunmao.guo dfcabdb39f FIX: not throw when _add_auxiliary_dir_to_archive
Change-Id: Idf54bbbd0ef557ec5e1a8e51ed669a1eb1fb4261
Jira: STUDIO-6339
2024-03-25 15:29:19 +08:00
chunmao.guo 6b4a33a196 FIX: add cli_id, cli_ver to bambu url
Change-Id: Ic527d1497c6dee0c723d7b4629f0be825a8f7545
Jira: none
2024-03-25 15:29:19 +08:00
lane.wei 07f965313a FIX: seq_print: fix an invalid warning caused by sinking
github: https://github.com/bambulab/BambuStudio/issues/3007
Change-Id: I1111910f2c625d5a871ea01b37dbfa7b04a849ee
(cherry picked from commit a3db95bb0940d5afe07ef0bb07113cc2acd7cd0a)
2024-03-25 15:29:19 +08:00
zhou.xu 50a3757e61 ENH:remove warning of "too close to others"
Jira: STUDIO-6394
Change-Id: Ic2858ad328f36219a47f87c534ae0fd4d15c0b0c
2024-03-25 15:29:19 +08:00
zhou.xu 023c1ef7cb NEW: add gizmo function of Measure
Jira: STUDIO-6166
Referenced some code from PrusaSlicer,and i made some improvements:
Change the measurement object to a local coordinate system and support measurement of multiple model_objects

thanks for PrusaSlicer and enricoturri1966
commit 928a642eb94ae8f04aee26e8242deb836cc1d3c3
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Fri Sep 2 11:24:06 2022 +0200

    Measuring: Added features selection in GLGizmoMeasure

Change-Id: I9cec73398f0cdbd9a7718cb1d52145bf2562d9e1
2024-03-25 15:29:19 +08:00
liz.li dab9a98e0d NEW: support to adjust other layers print sequence
Jira: 6338

Change-Id: I5e6aef71aa9e6e97c1859aaaeb9ada5f1340414a
2024-03-25 15:29:19 +08:00
zhimin.zeng 8a965afb1a ENH: add customize other layers print sequence
Jira: 6338
Change-Id: Ic14b2671ade37ab37583b81c5b509447b6c0d8f8
2024-03-25 15:29:19 +08:00
xun.zhang bc36255090 ENH: optimize the get_tool_order func
Use Dp to refine performance

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I38b0c875e4deee9d9fbe926087fb5b2e274f8f90
(cherry picked from commit 9b7b66dc7a1f5e3efa318227ae7694bec5ec1216)
2024-03-25 15:29:19 +08:00
maosheng.wei 2cc42a0fd9 FIX: No data in the drop-down menu of the AMS settings page
Jira: 6342 6343

Change-Id: I6938fb4a7ae2816a4675d8d739622e25f219f469
2024-03-25 15:29:19 +08:00
zhou.xu ac1459e338 NEW: upgrade Measure class
SurfaceFeature is global,Measuring is local
Jira: STUDIO-6166

Change-Id: I62dc58c51f0ac5d9c587e2debe3d774f02a3158a
2024-03-25 15:29:19 +08:00
maosheng.wei 626e2a9f79 ENH: custom filament sync with printer
1. prompt sync user presets when create custom filament
2. Fix the issue of not displaying printers when creating custom Filaments based on presets when selecting PLA Aero Type.
3. Optimizing the traversal logic during AMS Setting Pop up reduces time complexity and allows for quick pop ups. Additionally, using nozzle calibers for retrieval and repairing custom materials may result in inaccurate retrieval.
4. Implement synchronization logic with the printer
	-a. Received slot information, reset the slot when the "filament_id" in the information does not exist in Studio
	-b. Received slot information, the nozzle temperature in the information is different from the preset nozzle temperature in Studio, reset the current temperature.

Jira: none

Change-Id: I511dc82563ec77a341839671d398607048ce1985
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2024-03-25 15:29:19 +08:00
Arthur d75e79c2ec ENH: output the part name that causes mesh boolean failure
jira: none
Change-Id: Ie90809575291d66d54462f81c157d3e89fc34d55
(cherry picked from commit fdb6457798757a35b9623ece3b3071b3ad7ad38d)
2024-03-25 15:29:19 +08:00
enricoturri1966 06b17c4fdc NEW:add measure gizmo new files
Jira: STUDIO-6166
most of the code come from orca
The original code is from PrusaSlicer and referring to the implementation of OrcaSlicer. Thanks for PrusaSlicer and OrcaSlicer , thanks for Lukas Matena and enricoturri1966 and so on.
commit f72d42f920334a05b0efa01f18eb4cc066809c00
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Tue Oct 31 11:43:04 2023 +0800

    Measure: Initial porting of Measure Gizmo

diff --git a/resources/images/copy_menu.svg b/resources/images/copy_menu.svg
new file mode 100644

Change-Id: I81afa52165f14c34e0c63f2c40c953a04d76fc8b
2024-03-25 15:29:19 +08:00
zhimin.zeng c094afe37a FIX: The last trace of the PA line calibration is incorrect.
Jira: 6307
Change-Id: I498aa7d28c75a1aca31f334e06250b9b9f02430f
2024-03-25 15:29:19 +08:00
XunZhangBambu 53a4de5674 ENH: add new filament type PA-GF
1.Set Bambu PA6-GF type to PA-GF

jira:[NEW]

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I79b4896ed9901e8525fd770f4a37713729b7e420
2024-03-25 15:29:19 +08:00
zhimin.zeng 698e1ae63c FIX: Unnecessary prime tower error prompts
Custom gcode on other plate causes unnecessary prime tower error prompts
Jira: 6305

Change-Id: If499659b364a6b6898db1587b7b2aeed03758667
2024-03-25 15:29:19 +08:00
zhimin.zeng 32399c9ff2 FIX: unexpected layers in multi color print
github: 3131
Change-Id: I2a42e3bbd2247fbc0957022e1baae43c9375a8fb
2024-03-25 15:29:19 +08:00
tao wang d871339f0d ENH:STL tracking restricted area
jira:[STUDIO-6155]

Change-Id: I289c8b8aa8f62f0e5cc7004fb60437aa3337ca85
2024-03-25 15:29:19 +08:00
Stone Li 9787cdb5a3 ENH: skip more print_host related info
JIRA: STUDIO-6247

Change-Id: I32e4c24f377e90c79370f33282e1a4b84477d57e
Signed-off-by: Stone Li <stone.li@bambulab.com>
2024-03-25 15:29:19 +08:00
Arthur 8caaf230df FIX: Rectilinear Interlaced pattern not working for sung supports
jira: STUDIO-6276
github: #3596
Change-Id: Icea80646c7526448a81ff4f00e868a34db2fa8cf
(cherry picked from commit 6f86b4f6e70c8d1778e3beb867d0ab2583fc3e87)
2024-03-25 15:29:19 +08:00
chunmao.guo d4e40d5b02 FIX: parse printer_model_id from 3mf
Change-Id: Ib149c986885ee6412898f1f51dd5a4aaad0a596d
Jira: none
2024-03-25 15:29:19 +08:00
Arthur f5b8cadc8c FIX: mesh boolean difference may miss some parts
jira: STUDIO-6209

Change-Id: Iea86393a45954157ccc80d3a143d3db1e15721e4
(cherry picked from commit a23eb1e0db00a5cf7b82b240ebcbbefd37f8a84d)
2024-03-25 15:29:19 +08:00
Arthur fa61ee6abd FIX: Checking support necessity not working
Only early stop detect_overhangs if support is disabled AND not checking support necessity.

jira: STUDIO-6158
Change-Id: I2d9662231d941827d6392d57344f7d911f641e09
(cherry picked from commit b811a6031d1afe0e7b1cb73050fe6391a65411ef)
2024-03-25 15:29:19 +08:00
tao wang aa8d7acf3b FIX:fixed issue with chinese path
jira:[Fixed the issue of failed loading of configuration files under Chinese path]

Change-Id: I9badd8fc158fcf49f46411ac4e5f72d58823eeb2
2024-03-25 15:29:19 +08:00
tao wang 026851c03e ENH:remove log output
jira:[for log]

Change-Id: I86313ceeb0118171878336cf3d5cf4359e0f5798
2024-03-25 15:29:19 +08:00
Arthur 9d37a31338 FIX: z_distance_top==0 not working
jira: STUDIO-6144

Change-Id: I9ddaa237e2d71c8697a41bbbdb86f70d0b1e1452
(cherry picked from commit 38ba45e9cf7f59d2c1de658a56d8f2b109721bcd)
2024-03-25 15:29:19 +08:00
maosheng.wei f0359e9304 FIX: [5779] fix show alias logic when load preset
Jira: 5779

Change-Id: I4fefe3c1ffbca9bd8296f1b3fdd5de48c6a36a28
2024-03-25 15:29:19 +08:00
maosheng.wei 139df6a9a4 FIX: ENH: Cannot save when illegal characters in the preset name
Jira: 5981

Change-Id: I5cce1a258230ea2d23f6f2400a14dee7e53b7705
2024-03-25 15:29:19 +08:00
Arthur 0589348c32 FIX: raft_first_layer_expansion not working with tree support
jira: STUDIO-6043
github: #3355
Change-Id: Idf2a0053026a6f232a5239c3f504191321feb6ee
(cherry picked from commit 3eb35f5b1a53990d215ae4d3527917611f5083c6)
2024-03-25 15:29:19 +08:00
XunZhangBambu 0909132bd4 FIX: add some missing filament type
Add PPS,PPS-CF,PPA-CF,PPA-GF

jira:[NEW]

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: Ie2ca06d1d9571df55e8a418d509ae74b92791e8b
2024-03-25 15:29:19 +08:00
Arthur 39ae64fc53 ENH: accurate top z distance for tree support
1. accurate top z distance for tree support
 Also fix a bug that bottom z and top z distances are misused.
    jira: STUDIO-3000, STUDIO-5990
    github: #1827
2. Change interface pattern to interlaced rectilinear when using
support material.
2. clean up tree support code

Change-Id: Icc8ce1b6844c841a6fbd1d623df707fdc8ed0f7b
(cherry picked from commit da7412a48dfb5767918ef125b9d0fb9718c03a61)
2024-03-25 15:29:19 +08:00
Arthur 72ef0a4d2a ENH: give exaxt reason of boolean fail
jira: none
Change-Id: Ied645373a4516be7466078ace73c69ef584a743a
(cherry picked from commit f21819b4f6718357984650e7eb89a2e496dfa03c)
2024-03-25 15:29:19 +08:00
chunmao.guo 191ab5681f FIX: remove period backup log
Change-Id: Ia7395bce17e192a0684e1102d119e1e908fa1e5b
2024-03-25 15:29:19 +08:00
Arthur e482763f8e FIX: 3mf with some Chinese puncs are not readable to 3D viewer
jira: none
Change-Id: I8470538c4a342f63c6334ae3268a99b3e8b54ba3
2024-03-25 10:42:29 +08:00
Arthur abbd4e3ca7 ENH: export stl with proper translation
1. export stl with proper translation
   If the object is not on first plate, previous export will give the
   vertices very big coordinates.
   jira: STUDIO-5991
2. add log for boolean failure reasons.

Change-Id: I52cec4e3ca31b215fbe60246f0266de3d4b8cb61
(cherry picked from commit 6c4dbc8c6c43dd5789e5ce3a572f465548068b77)
2024-03-25 10:42:29 +08:00
Arthur 5145f39f57 FIX: low-level NFP bug with auto-arranging
1. FIX low-level NFP bug with auto-arranging due to correctNfpPosition's
  bug.
    jira: STUDIO-5756, STUDIO-4874
2. FIX large items may not be able to be packed due to a too large inflation
    jira: STUDIO-5566, STUDIO-5716
    github: #3194

Change-Id: Id63fb3a5f5fe7ce3a5675c86a3d1440f46866ca3
(cherry picked from commit 9a789262cee4e14f10b673a4f00126d27bcf071b)
2024-03-25 10:42:29 +08:00
lane.wei 4bcb70f079 ENH: skip_object: set enable_skip to false when only one object in plate
Single object doesn't need to support skip

JIRA: no-jira
Change-Id: Ic42488b80b09a451286d68f8f2348eade879eed8
2024-03-25 10:42:29 +08:00
SoftFever 289c1c1534 ENH: QoL: improve PA Line method
Signed-off-by: SoftFever <softfeverever@gmail.com>
Jira: XXXX
Change-Id: I9b3a9f85f76ecb183a4f997b046128d88fecc488
2024-03-25 10:42:29 +08:00
zhimin.zeng e9b33cfcb9 FIX: first layer print sequence is incorrect when print by object
Change-Id: I6943a2d59eeb10db176dbb5cbe8567b5320d7cb1
2024-03-25 10:42:29 +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
maosheng.wei 0e277ec066 FIX: Studio UI Freeze when saving user preset
github: #3335

Change-Id: Idaf53f673a3e46408826c06bdde2c592395d358b
2024-03-25 10:42:29 +08:00
Arthur fde4d41821 ENH: improve auto-arranging
1. add a translation
   jira: STUDIO-5758
2. fix by-object arranging failing issue due to wrong exclusion_gap
  jira: STUDIO-5941

Change-Id: Icbdbdf7d8ba91be7f355d31a5f81a9f79356dc7e
(cherry picked from commit eed212e3550cb2256625a6fd09fc3d69d66659c4)
2024-03-25 10:42:29 +08:00
XunZhangBambu 1fa6a08cc7 FIX: exception when comparing profiles
jira:[NEW]

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I946b5fcd35f779d271df2b3de731fdcada5aab29
2024-03-25 10:42:29 +08:00
Arthur f3bd5ff870 FIX: several support bugs
1. interlaced rectilinear interface pattern not working with tree supports
2. infill overlaps with walls when wall count>1
3. support blockers can't block sharp tail detection in normal support
   jira: STUDIO-5663
4. bottom z distance=0 not working for normal support.
   jira: STUDIO-5676
   github: #3203

Change-Id: I025eff2aaad90ad565661aa656c59c82ff969bbf
(cherry picked from commit 5aaf7ead0fd697043f673161e0ede0145ec49f4d)
2024-03-25 10:42:29 +08:00
Arthur ec30954782 ENH: avoid duplicating meshes in boolean
For UNION and A_NOT_B(difference), the merged parts can be safely skipped.

jira: none
Change-Id: Ie931dba3d3f8c65565ff1f5ac24ff23292f8156f
(cherry picked from commit 37d49a0a49ddc15a187d3fac34b580f3192af86f)
2024-03-25 10:42:29 +08:00
Arthur 249ee5b766 ENH: improve auto arranging with multi colors
Improve sortfunc: single color objects first, then objects with more colors

jira: none
Change-Id: I06945d85206331121a26efd3ea8fcc575a183005
2024-03-25 10:42:29 +08:00
Kunlong Ma 8cba6a3566 FIX: Copywriting updates
JIRA: NONE

Change-Id: I6df034f95b4e6d517c57286dd6f564510b9fa4ab
2024-03-25 10:42:29 +08:00
maosheng.wei 9d0d0ccc4a FIX: [5846] Custom Filament Page show System Filament
Simultaneously solve: When downloading Preset from the cloud, the filament_id of the preset in m_preset is null.

Jira: 5846

Change-Id: I6ba1b46fe92e345614b6a4af3fffa87d81fa2456
2024-03-25 10:42:29 +08:00
zhou.xu 4b91e78fb4 ENH:add "reset function" in cutTongueAndGroove mode
Jira: STUDIO-5804
Change-Id: I61fb10db65f5ab954473373ed585557c99212a8c
2024-03-25 10:42:29 +08:00
Kunlong Ma 27d3fd73ee FIX: The problem caused by Euler angle calculation
JIRA: STUDIO-5441
Fix the issue of floating after flattening caused by Euler angle
calculation

thanks Lukas Matena and Prusa
Author: Lukas Matena
Data: Sep 23,2022

Fixed issue with Euler angles:
the function to extract Euler angles did not work reliably in some of the corner cases.
The bug was not present in 2.5.0 release.

Change-Id: Ie8e2c000ae38522b4f32d8557671519f86d19820
2024-03-25 10:42:29 +08:00
XunZhangBambu 9ce9536a08 ENH: refine some words with air filtration
Github:#3306

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I917dc0d44e7f17f47d90a9e156fbfa8bf02c8049
2024-03-25 10:42:29 +08:00
Arthur 3ef065a4ed FIX: auto arranging short objects gives overlapping results
jira: STUDIO-5778
Change-Id: I6761875d653fbed1beadd6480d37b97f71dfdf24
2024-03-25 10:42:29 +08:00
Arthur 472640c1f1 NEW: add nozzle_height to machine profile and do not detect conflict
Jira: request from 1.9

1. add nozzle_height to machine profile
2. auto arranging and sequential_print_clearance_valid don't consider objects conflicting if they are all shorter than nozzle_height and close.
3. do not detect conflict when all models are short.

Change-Id: I8d1eebb15d5bfa8c40d7491e033149e360531b89
(cherry picked from commit 6b4b52653db5f08d724a556c5c766c0bfa00f34d)
2024-03-25 10:42:29 +08:00
Kunlong Ma 62b872888f FIX: The flushing was not auto-calc when sync ams list
JIRA: STUDIO-5551

1. flushing volume auto-calc when sync ams list
2. flushing volume takes the larger calculation value when filament has
   multi-colors

Signed-off-by: Kunlong Ma <kunlong.ma@bambulab.com>
Change-Id: I72e6f9780ea56103a44c2da6068440a4615c254d
2024-03-25 10:42:29 +08:00
chunmao.guo 657050aa5c ENH: support preset description(tooltip)
Change-Id: Iff005baac4974c538d1109fb0ba1df20b04a8f69
Jira: STUDIO-5754
2024-03-25 10:42:29 +08:00
zhou.xu e04e39cecf FIX:crash when intersection result is empty
Jira: STUDIO-5755
Change-Id: I56c35ccf8742f74a925d69e3dcd90c4ffc1294fa
2024-03-25 10:42:29 +08:00
maosheng.wei e21a808d73 ENH: add alias for custom Filament preset
Jira: XXXX

Change-Id: I2fecc8b2bdb63618155e3d21f9db374a6119e416
2024-03-25 10:42:29 +08:00
zhou.xu 4f5d15be34 ENH:remember filament custom color
Jira: STUDIO-5635
Change-Id: Id7f7204851c6bc3975c8447db4b8ee7d2e9c6d9d
2024-03-25 10:42:29 +08:00
zhimin.zeng 7f46a1c04c FIX: the initial_non_support_extruder_id is not correct
Jira: 5270
Change-Id: Id39074b1834cfad871c5afe03e7d00c8114838b9
2024-03-25 10:42:29 +08:00
zhimin.zeng 3ac6112178 FIX: An error of inconsistent layer height is reported.
Even if the height range does not modify the object layer height.

Change-Id: If55c77afa4cdbe8b8fcc6d1f1ca640f7338892f0
2024-03-25 10:42:29 +08:00
zhimin.zeng c58393bbb8 FIX: Add flush_length for change_filament_gcode
Change-Id: I30f4b97d3d61c2a57f0e92f157cbd31c38aa7265
Jira: XXXX
2024-03-25 10:42:29 +08:00
maosheng.wei 4f1e048a83 FIX: 3mf specification: change namespace form slic3rpe to BambuStudio
Jira: XXXX

Change-Id: Id705affc875ef23fdf2ac6d79f0cb0aafc4f7050
2024-03-25 10:42:29 +08:00
maosheng.wei 785062bdfe FIX: Filament issue generated when creating a printer
Jira: XXXX

Change-Id: I976770b69b47641bd54aa7a9c56fba7f58d1ab68
2024-03-25 10:42:29 +08:00
Arthur f2b938ebc6 FIX: prevent slicing with adaptive layer height and organic support
Variable layer height is not supported with Organic supports.
This is picked from Prusa. Thanks.

jira: STUDIO-5614, STUDIO-5615

Change-Id: Iea462ecf8dd56e2a5a25cbe071519c29a2a763d3
(cherry picked from commit 708c5f0f7a00a30f9fe414b3dabe007ebdc48ca6)
2024-03-25 10:42:29 +08:00
Arthur 343f43ede8 FIX: several problems with mesh boolean
1. Cut with multiple volumes are OK now.
2. Close mesh boolean fail error with new object or open object
3. Fix wrong name and config of boolean resulting object

github: #3118
jira: none

Change-Id: If2c9dbfb36cbdfe4917a2371217923891bb7909c
(cherry picked from commit 982c0ecb92cf7c2b5ae5972ab900a6b10e7dda50)
2024-03-25 10:42:29 +08:00
chunmao.guo 9319440d74 FIX: Prefer old selection when sync AMS not compatible
Change-Id: I6b18db51887132a997cf78d70fff9a92e23bc44a
Jira: STUDIO-5416
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
wenjie.guo f2b8d78230 FIX: remember the flow ratio calibration type
Jira: STUDIO-5181
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: Id6125d1d4ea58972ce55c2c2498259596b25111e
(cherry picked from commit 1af1038fd4824d989e992cb630cf34e00c787af7)
2024-03-25 10:42:29 +08:00
Arthur 4a9b31ed77 ENH: remove unnecessary translation labels
Principles of removal:
1. Don't translate common symbols such as mm/s, °C, etc.,
they are the same in most languages.
2. Don't translate professional terminology, such as CoreXY,
   I3, PLA, TPU, HMS, etc.
3. Don't use unicode codes, use symbols instead. Eg. \u2103 -> °C.
   Dont' worry, gettext and modern compilers can recognize them.
4. Fix some encoding warnings (don't use GB2312, use UTF-8 instead).

jira: none

Change-Id: Ifa847d4f32a6f8dcba660ae2026ad09fc914c7fb
2024-03-25 10:42:29 +08:00
lane.wei 9b47f26f20 FIX: fix the compiling error under macos for previous patches
/Users/ci.slave/slicer/patch_build/1/bamboo_slicer/src/libslic3r/GCode/GCodeProcessor.cpp:486:33: error: cannot pass non-trivial object of type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char>>') to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]
                                  get_time_dhms(machine.time));
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

github pull request: https://github.com/bambulab/BambuStudio/pull/3360
Change-Id: If13ee145b20ef9532b23a58bb3b0a29f30d8c0a8

Change-Id: I98fd87417c432c3afae67a3d2bc29c79f8bffa3c
2024-01-19 18:17:39 +08:00
Dmytro Chystiakov 10e53651b3 fix: lower case of function name call 2024-01-17 17:08:15 +08:00
Dmytro Chystiakov f0831aebcf fix: 'print' was not declared in this scope 2024-01-17 17:08:15 +08:00
Dmytro Chystiakov 5e0e675f7d add: support gcode estimated printing time for klipper 2024-01-17 17:08:15 +08:00
Bastien Nocera 79291b89cd Fix ModelObject declaration
Forward declare ModelObject in bbs_3mf.hpp so this header can be
included in ModelObject.hpp where the class is actually defined,
the same way bbs_3mf.hpp also forward declares "class Model" and
others.

[274/471] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Printer/PrinterFileSystem.cpp.o
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Printer/PrinterFileSystem.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DCURL_STATICLIB -DGLEW_STATIC -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOPENSSL_CERT_OVERRIDE -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_CURRENTLY_COMPILING_GUI_MODULE -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_FILE_OFFSET_BITS=64 -D_UNICODE -D__WXGTK3__ -D__WXGTK__ -DwxDEBUG_LEVEL=0 -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/hidapi/include -I/run/build/BambuStudio/src/slic3r/Utils -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/blkid -I/usr/include/libmount -I/usr/include/sysprof-6 -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/gio-unix-2.0 -I/usr/include/fribidi -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gstreamer-1.0 -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -I/run/build/BambuStudio/src/minilzo -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/lib/wx/include/gtk3-unicode-static-3.2 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/wx-3.2 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -std=gnu++20 -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Printer/PrinterFileSystem.cpp.o -MF src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Printer/PrinterFileSystem.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Printer/PrinterFileSystem.cpp.o -c /run/build/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp
In file included from /run/build/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:3:
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.hpp:264:13: error: variable or field ‘save_object_mesh’ declared void
  264 | extern void save_object_mesh(ModelObject& object);
      |             ^~~~~~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.hpp:264:30: error: ‘ModelObject’ was not declared in this scope
  264 | extern void save_object_mesh(ModelObject& object);
      |                              ^~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.hpp:264:43: error: ‘object’ was not declared in this scope; did you mean ‘nlohmann::detail::value_t::object’?
  264 | extern void save_object_mesh(ModelObject& object);
      |                                           ^~~~~~

Closes: #3141
2024-01-02 17:42:37 +08:00
Bastien Nocera 4c836314a6 libslic3r: Fix Slic3r::format declaration 2024-01-02 17:42:37 +08:00
Bastien Nocera f54fb4a1cf libslic3r: Fix missing includes
Fix a lot of "undeclared" errors during compilation on top of the
current GNOME 45 Flatpak SDK.
2024-01-02 17:42:37 +08:00
Ricky M 7ce38201c8 Update PrintConfig.cpp to fix typo 2023-12-21 11:14:50 +08:00
Bastien Nocera 9445cc83e1 Fix tbb declaration
[114/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -c /run/build/BambuStudio/src/libslic3r/Format/STEP.cpp
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp: In function ‘bool Slic3r::load_step(const char*, Model*, bool&, ImportStepProgressFn, StepIsUtf8Fn)’:
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp:269:5: error: ‘tbb’ has not been declared
  269 |     tbb::parallel_for(tbb::blocked_range<size_t>(0, namedSolids.size()), [&](const tbb::blocked_range<size_t> &range) {
      |     ^~~
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp:269:23: error: ‘tbb’ has not been declared
  269 |     tbb::parallel_for(tbb::blocked_range<size_t>(0, namedSolids.size()), [&](const tbb::blocked_range<size_t> &range) {
      |                       ^~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 97355ed49d Fix std::setw and std::setfill declarations
[128/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/GCode/ConflictChecker.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/GCode/ConflictChecker.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/GCode/ConflictChecker.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/GCode/ConflictChecker.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/GCode/ConflictChecker.cpp.o -c /run/build/BambuStudio/src/libslic3r/GCode/ConflictChecker.cpp
In file included from /run/build/BambuStudio/src/libslic3r/GCode/ConflictChecker.hpp:4,
                 from /run/build/BambuStudio/src/libslic3r/GCode/ConflictChecker.cpp:1:
/run/build/BambuStudio/src/libslic3r/GCode/../Utils.hpp: In function ‘std::string Slic3r::convert_to_full_version(std::string)’:
/run/build/BambuStudio/src/libslic3r/GCode/../Utils.hpp:110:24: error: ‘setw’ is not a member of ‘std’
  110 |             ss << std::setw(2) << std::setfill('0') << items[i];
      |                        ^~~~
/run/build/BambuStudio/src/libslic3r/GCode/../Utils.hpp:15:1: note: ‘std::setw’ is defined in header ‘<iomanip>’; did you forget to ‘#include <iomanip>’?
   14 | #include "libslic3r.h"
  +++ |+#include <iomanip>
   15 |
/run/build/BambuStudio/src/libslic3r/GCode/../Utils.hpp:110:40: error: ‘setfill’ is not a member of ‘std’
  110 |             ss << std::setw(2) << std::setfill('0') << items[i];
      |                                        ^~~~~~~
/run/build/BambuStudio/src/libslic3r/GCode/../Utils.hpp:110:40: note: ‘std::setfill’ is defined in header ‘<iomanip>’; did you forget to ‘#include <iomanip>’?
2023-12-15 09:58:21 +08:00
Bastien Nocera 5e1ee1d2a1 Fix boost::nowide::remove declaration
[111/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -c /run/build/BambuStudio/src/libslic3r/Format/STEP.cpp
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp: In member function ‘bool Slic3r::StepPreProcessor::preprocess(const char*, std::string&)’:
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp:49:20: error: ‘remove’ is not a member of ‘boost::nowide’
   49 |     boost::nowide::remove(temp_step_path.c_str());
      |                    ^~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 5094b5a1cd Fix tbb::parallel_for and tbb::blocked_range declaration
[115/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o -c /run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp: In member function ‘bool Slic3r::_BBS_3MF_Importer::_load_model_from_file(std::string, Slic3r::Model&, Slic3r::PlateDataPtrs&, std::vector<Slic3r::Preset*>&, Slic3r::DynamicPrintConfig&, Slic3r::ConfigSubstitutionContext&, Slic3r::Import3mfProgressFn, Slic3r::BBLProject*, int)’:
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp:1594:18: error: ‘parallel_for’ is not a member of ‘tbb’
 1594 |             tbb::parallel_for(
      |                  ^~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp:1595:22: error: ‘blocked_range’ is not a member of ‘tbb’
 1595 |                 tbb::blocked_range<size_t>(0, m_object_importers.size()),
      |                      ^~~~~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 0930aa76c7 Fix Slic3r::BoundingBox declaration
[120/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/GCode/RetractWhenCrossingPerimeters.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/GCode/RetractWhenCrossingPerimeters.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/GCode/RetractWhenCrossingPerimeters.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/GCode/RetractWhenCrossingPerimeters.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/GCode/RetractWhenCrossingPerimeters.cpp.o -c /run/build/BambuStudio/src/libslic3r/GCode/RetractWhenCrossingPerimeters.cpp
In file included from /run/build/BambuStudio/src/libslic3r/GCode/RetractWhenCrossingPerimeters.cpp:2:
/run/build/BambuStudio/src/libslic3r/GCode/../Layer.hpp:153:29: error: field ‘loverhangs_bbox’ has incomplete type ‘Slic3r::BoundingBox’
  153 |     BoundingBox             loverhangs_bbox;
      |                             ^~~~~~~~~~~~~~~
In file included from /run/build/BambuStudio/src/libslic3r/GCode/../ExPolygon.hpp:4,
                 from /run/build/BambuStudio/src/libslic3r/GCode/../ClipperUtils.hpp:7,
                 from /run/build/BambuStudio/src/libslic3r/GCode/RetractWhenCrossingPerimeters.cpp:1:
/run/build/BambuStudio/src/libslic3r/GCode/../Point.hpp:17:7: note: forward declaration of ‘class Slic3r::BoundingBox’
   17 | class BoundingBox;
      |       ^~~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 29976649a1 Fix missing boost::nowide::ifstream declaration
119/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Format/STEP.cpp.o -c /run/build/BambuStudio/src/libslic3r/Format/STEP.cpp
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp: In member function ‘bool Slic3r::StepPreProcessor::preprocess(const char*, std::string&)’:
/run/build/BambuStudio/src/libslic3r/Format/STEP.cpp:39:12: error: ‘boost::nowide’ has not been declared
   39 |     boost::nowide::ifstream infile(path);
      |            ^~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 9fa36e13a1 Fix missing boost::lexical_cast declaration
[113/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Format/bbs_3mf.cpp.o -c /run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp: In member function ‘bool Slic3r::_BBS_3MF_Importer::load_model_from_file(const std::string&, Slic3r::Model&, Slic3r::PlateDataPtrs&, std::vector<Slic3r::Preset*>&, Slic3r::DynamicPrintConfig&, Slic3r::ConfigSubstitutionContext&, Slic3r::LoadStrategy, bool&, Slic3r::Semver&, Slic3r::Import3mfProgressFn, Slic3r::BBLProject*, int)’:
/run/build/BambuStudio/src/libslic3r/Format/bbs_3mf.cpp:1241:24: error: ‘lexical_cast’ is not a member of ‘boost’
 1241 |                 boost::lexical_cast<std::string>(get_current_pid()));
      |                        ^~~~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 90ca0cf2e1 Fix missing std::regex declaration
[83/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/Config.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Config.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer  -std=gnu++11 -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Config.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Config.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Config.cpp.o -c /run/build/BambuStudio/src/libslic3r/Config.cpp
/run/build/BambuStudio/src/libslic3r/Config.cpp: In static member function ‘static size_t Slic3r::ConfigBase::load_from_gcode_string_legacy(Slic3r::ConfigBase&, const char*, Slic3r::ConfigSubstitutionContext&)’:
/run/build/BambuStudio/src/libslic3r/Config.cpp:1100:10: error: ‘regex’ is not a member of ‘std’
 1100 |     std::regex match_pattern("\nN[0-9]* *");
      |          ^~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 1d3c90d9c9 Fix std::unordered_set declaration
[79/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer  -std=gnu++11 -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o -c /run/build/BambuStudio/src/libslic3r/FaceDetector.cpp
/run/build/BambuStudio/src/libslic3r/FaceDetector.cpp:33:10: error: ‘unordered_set’ is not a member of ‘std’
   33 |     std::unordered_set<size_t> hit_face_indices;
      |          ^~~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/FaceDetector.cpp:5:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
    4 | #include "Model.hpp"
  +++ |+#include <unordered_set>
    5 |
2023-12-15 09:58:21 +08:00
Bastien Nocera ccdd23443f Fix ‘base_class’ is not a member of ‘cereal’ error
[72/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer  -std=gnu++11 -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/FaceDetector.cpp.o -c /run/build/BambuStudio/src/libslic3r/FaceDetector.cpp
In file included from /run/build/BambuStudio/src/libslic3r/Model.hpp:7,
                 from /run/build/BambuStudio/src/libslic3r/FaceDetector.cpp:4:
/run/build/BambuStudio/src/libslic3r/ObjectID.hpp: In member function ‘void Slic3r::CutObjectBase::serialize(Archive&)’:
/run/build/BambuStudio/src/libslic3r/ObjectID.hpp:187:20: error: ‘base_class’ is not a member of ‘cereal’
  187 |         ar(cereal::base_class<ObjectBase>(this));
      |                    ^~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 66e1c8c65f Fix its_make_cube() not declared in scope
[80/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/BuildVolume.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/BuildVolume.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/BuildVolume.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/BuildVolume.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/BuildVolume.cpp.o -c /run/build/BambuStudio/src/libslic3r/BuildVolume.cpp
/run/build/BambuStudio/src/libslic3r/BuildVolume.cpp: In member function ‘indexed_triangle_set Slic3r::BuildVolume::bounding_mesh(bool) const’:
/run/build/BambuStudio/src/libslic3r/BuildVolume.cpp:426:16: error: ‘its_make_cube’ was not declared in this scope
  426 |         return its_make_cube(scale_(max_pt3.x()), scale_(max_pt3.y()), scale_(max_pt3.z()));
      |                ^~~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/BuildVolume.cpp:429:16: error: ‘its_make_cube’ was not declared in this scope
  429 |         return its_make_cube(max_pt3.x(), max_pt3.y(), max_pt3.z());
      |                ^~~~~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 8e6e68de3f Fix missing BOOST_LOG_TRIVIAL declaration
/run/build/BambuStudio/src/libslic3r/Brim.cpp: In function ‘void Slic3r::make_brim(const Print&, PrintTryCancel, Polygons&, std::map<ObjectID, ExtrusionEntityCollection>&, std::map<ObjectID, ExtrusionEntityCollection>&, std::vector<std::pair<ObjectID, unsigned int> >&, std::vector<unsigned int>&)’:
/run/build/BambuStudio/src/libslic3r/Brim.cpp:1656:23: error: ‘debug’ was not declared in this scope
 1656 |     BOOST_LOG_TRIVIAL(debug) << "brim_width_max, num_loops: " << brim_width_max << ", " << num_loops;
      |                       ^~~~~
/run/build/BambuStudio/src/libslic3r/Brim.cpp:1656:5: error: ‘BOOST_LOG_TRIVIAL’ was not declared in this scope
 1656 |     BOOST_LOG_TRIVIAL(debug) << "brim_width_max, num_loops: " << brim_width_max << ", " << num_loops;
      |     ^~~~~~~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/Brim.cpp: In function ‘Slic3r::ExtrusionEntityCollection Slic3r::make_brim(const Print&, PrintTryCancel, Polygons&)’:
/run/build/BambuStudio/src/libslic3r/Brim.cpp:1675:23: error: ‘debug’ was not declared in this scope
 1675 |     BOOST_LOG_TRIVIAL(debug) << "brim_width_max, num_loops: " << brim_width_max << ", " << num_loops;
      |                       ^~~~~
/run/build/BambuStudio/src/libslic3r/Brim.cpp:1675:5: error: ‘BOOST_LOG_TRIVIAL’ was not declared in this scope
 1675 |     BOOST_LOG_TRIVIAL(debug) << "brim_width_max, num_loops: " << brim_width_max << ", " << num_loops;
      |     ^~~~~~~~~~~~~~~~~
2023-12-15 09:58:21 +08:00
Bastien Nocera 11953924ea Fix std::mutex declaration
/run/build/BambuStudio/src/libslic3r/Preset.hpp:772:10: error: ‘mutex’ in namespace ‘std’ does not name a type
  772 |     std::mutex          m_mutex;
      |          ^~~~~
/run/build/BambuStudio/src/libslic3r/Preset.hpp:14:1: note: ‘std::mutex’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
   13 | #include "ProjectTask.hpp"
  +++ |+#include <mutex>
   14 |
2023-12-15 09:58:21 +08:00
Bastien Nocera e88948a684 Fix Slic3r::Polyline and Slic3r::MultiPoint declarations
[61/471] Building CXX object src/libslic3r/CMakeFiles/libslic3r.dir/ArcFitter.cpp.o
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/ArcFitter.cpp.o
/run/ccache/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_XLIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOCC_CONVERT_SIGNALS -DOPENVDB_OPENEXR_STATICLIB -DOPENVDB_STATICLIB -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/run/build/BambuStudio/src -I/run/build/BambuStudio/build/src/platform -I/run/build/BambuStudio/src/libslic3r -I/run/build/BambuStudio/build/src/libslic3r -I/run/build/BambuStudio/deps/build/destdir/usr/local/include/opencascade -I/run/build/BambuStudio/src/libnest2d/include -I/run/build/BambuStudio/src/miniz -I/run/build/BambuStudio/src/glu-libtess/include -I/run/build/BambuStudio/src/clipper2/Clipper2Lib/include -isystem /run/build/BambuStudio/src/eigen -isystem /run/build/BambuStudio/src/libigl -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/boost-1_78 -isystem /run/build/BambuStudio/deps/build/destdir/usr/local/include/OpenEXR -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fext-numeric-literals -Wall -Wno-reorder -O3 -DNDEBUG -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -DOPENVDB_ABI_VERSION_NUMBER=8 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/ArcFitter.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/ArcFitter.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/ArcFitter.cpp.o -c /run/build/BambuStudio/src/libslic3r/ArcFitter.cpp
/run/build/BambuStudio/src/libslic3r/ArcFitter.cpp: In static member function ‘static void Slic3r::ArcFitter::do_arc_fitting(const Slic3r::Points&, std::vector<Slic3r::PathFittingData>&, double)’:
/run/build/BambuStudio/src/libslic3r/ArcFitter.cpp:51:99: error: invalid use of incomplete type ‘class Slic3r::Polyline’
   51 |         can_fit = ArcSegment::try_create_arc(current_segment, target_arc, Polyline(current_segment).length(),
      |                                                                                                   ^
In file included from /run/build/BambuStudio/src/libslic3r/Circle.hpp:5,
                 from /run/build/BambuStudio/src/libslic3r/ArcFitter.hpp:4,
                 from /run/build/BambuStudio/src/libslic3r/ArcFitter.cpp:1:
/run/build/BambuStudio/src/libslic3r/Line.hpp:15:7: note: forward declaration of ‘class Slic3r::Polyline’
   15 | class Polyline;
      |       ^~~~~~~~
/run/build/BambuStudio/src/libslic3r/ArcFitter.cpp: In static member function ‘static void Slic3r::ArcFitter::do_arc_fitting_and_simplify(Slic3r::Points&, std::vector<Slic3r::PathFittingData>&, double)’:
/run/build/BambuStudio/src/libslic3r/ArcFitter.cpp:108:30: error: incomplete type ‘Slic3r::MultiPoint’ used in nested name specifier
  108 |         points = MultiPoint::_douglas_peucker(points, tolerance);
      |                              ^~~~~~~~~~~~~~~~
/run/build/BambuStudio/src/libslic3r/ArcFitter.cpp:130:48: error: incomplete type ‘Slic3r::MultiPoint’ used in nested name specifier
  130 |             straight_or_arc_part = MultiPoint::_douglas_peucker(straight_or_arc_part, tolerance);
      |                                                ^~~~~~~~~~~~~~~~

Closes: https://github.com/bambulab/BambuStudio/issues/3074
2023-12-15 09:58:21 +08:00
zhimin.zeng e8573d723a FIX: slice error: WipeTowerIntegration::append_tcr
when print by object with multi-color
Jira: XXXX

Change-Id: Ic9ee2f6de45abb4a118fdb4cf89dea9ca7335094
2023-12-14 22:08:53 +08:00
Arthur 697a7bbee3 FIX: crash when support type and style are inconsistent
jira: STUDIO-5428
Change-Id: Ib1e79c71736810099e15282c30524e55e8f60f34
(cherry picked from commit aefb7fbaf25146c03bd2eb336f58ed2eb0e83ea6)
2023-12-14 22:08:53 +08:00
zhou.xu 4b8f9a4cc6 NEW:add "bed type to follow machine preset" function
Jira: STUDIO-5535
Change-Id: I2ef99a0a783a074d9379685adde11fddfd6f8cec
2023-12-14 22:08:53 +08:00
xun.zhang 873f4bc90f FIX: excpetion when plate center is negative
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ia1066bd7457181711d0a59b9544d65ed502410e0
2023-12-14 22:08:53 +08:00
zhou.xu 955d62fdf1 FIX:backup iterator location
Jira: STUDIO-5267
Change-Id: Id035c9225a858bb551aa4f09870fc4c6bb30b255
2023-12-14 22:08:53 +08:00
xun.zhang bc65d69911 ENH: modify default head detect zone
1. Set default head detect to empty

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I686c4c3115041471bc016cf3b0972ed730af64d3
2023-12-14 22:08:53 +08:00
xun.zhang 99bb1c213b ENH: support for head wrap detect
1.Add "in_head_wrap_detect_zone".Detect if the model projection enters
a specified area.

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I6aed5a782d2f33f023bdc19cf06dff0957828eeb
2023-12-14 22:08:53 +08:00
xun.zhang 0060459cae ENH: refine description of interface not for base
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ibe11e845b90ef2caf96d5780eaaf8764755cce1d
2023-12-14 22:08:53 +08:00
wenjie.guo 270e3724a2 FIX: the preset is the same with the first one when switching printers
Jira: STUDIO-5433

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: Icf1979f2bcffbc9c59a072924df5073fc3eac363
2023-12-14 22:08:53 +08:00
zhimin.zeng 13ba53b592 FIX: Close scan_first_layer when PA line cali
Jira: XXXX
Change-Id: Ide5c0038f4028b8f1d445a6b2d09b705d7872fb8
2023-12-14 22:08:53 +08:00
maosheng.wei a1a7b77b0b FIX: fix combobox and delete btn in filament setting enabled
Jira: XXXX

Change-Id: I8b659bd77ceb97c8cea9d3e5e931f4ea50822721
2023-12-05 15:55:37 +08:00
chunmao.guo f6b2305ae3 FIX: locale loading user preset
Change-Id: I88521e4b10cb802d9253eb79a6b78b3286f15a33
Jira: STUDIO-5436
2023-12-01 20:17:04 +08:00
zhimin.zeng fd00d28027 FIX: The maximum value is not printed in PA line mode
Jira: 5046  4951
Change-Id: Ic81f9a75ce7f088fe950fdde283ff5c942cd6e83
2023-12-01 20:17:04 +08:00
Arthur 1106ff8253 FIX: organic support not work with raft only
There is no raft generated when only raft enabled but no support needed.
jira: none

Change-Id: Ic0c9269e2f98038d85c9bc54e4a85f892dc5d764
2023-11-30 09:51:52 +08:00
xun.zhang 72ecc39fcd ENH: optimize param description
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id0ca9224227a716b21fc0b8430722264dc319344
2023-11-30 09:51:52 +08:00
xun.zhang 1d50e208b2 FIX: support do not generate
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ide9709d95203185538e280517f7aa6136beeda44
2023-11-30 09:51:52 +08:00
zhou.xu 538c6faebb FIX: array bound happen in TriangleSelector::deserialize
Jira: STUDIO-5170
Change-Id: I92b72a887845b462fad208f13607293b44d3d333
2023-11-30 09:51:52 +08:00
Arthur c21a1bf1df ENH: change default tree_support_wall_count to 0
Now normal support also uses this option, so we can't default it to 1, otherwise normal supports will be too hard to remove.

jira: none
Change-Id: Ic5700af5c17e3a7b265c8915f28b0db35c6e06e6
(cherry picked from commit 6b84a9826da108b76569e686bd9def0b23ae29fd)
2023-11-30 09:51:52 +08:00
maosheng.wei 35e7d8a11d FIX: edit filament dialog: preset name too long to del btn nan't show
Jira: 5336 5174
and verify string normalization

Change-Id: I380c3bed2bf43d01094b68979a8b67f4187c0b93
2023-11-30 09:51:52 +08:00
tao wang 54eed41661 NEW:tracking stl model files
jira:[STUDIO-5372]

Change-Id: Idb1275b07441f0cd06c24588d5f7c20f81f1556c
2023-11-30 09:51:52 +08:00
Arthur b96f1b333e ENH: improve normal support's quality
1. Add a base_interface_layer when using Supp.W
2. Fix a bug where base_angle and interface_angle are wong

jira: STUDIO-5386
Change-Id: I52ab32c63b3cd1e6e2ba6463b01ae26699cf13d3
(cherry picked from commit 92ddd4a10b793572a1fa009da5b9e44fcdf81de2)
2023-11-30 09:51:52 +08:00
Arthur d257c0f90d FIX: Revert "ENH: do not leave a gap for top...
Revert "ENH: do not leave a gap for top interface if the top z distance is 0"

This reverts commit 79ea32c7cbbdb7e689637980af7c36caf42284c9.

Revert reason: the supports are impossible to remove in some cases.
jira: STUDIO-5385

Change-Id: I376a6f4dfd78da6dfea68b9ac3d552cddd0b4272
(cherry picked from commit 34e38b705fde7f5d7f9a3a89c96a3627ce0c998e)
2023-11-30 09:51:52 +08:00
zhou.xu 211f323317 FIX:add slice_facet_for_cut_mesh api for cut tool
and modify section_vertices_map 's traverse
Jira: STUDIO-5267
Change-Id: Ifc4b183a4e4c4fdb4f47742f14f70a1ed93fa056

Change-Id: I52bfaef8926ef967b78a6cb712a1731a1b528a24
2023-11-30 09:51:52 +08:00
zhou.xu 0b84dd5fd6 FIX:cancel is_equal for slicing function
Jira: STUDIO-5267
Change-Id: I66d759aa2c968f8a28a6a5d8378929754f2db689
2023-11-23 17:35:33 +08:00
xun.zhang 75e8e96846 ENH: set layer range error to warning
1. If layer range exceeds maximum/minimum layer range in printer
settings,pop up a window to warn

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0304ee790e557ecf967f355c171993d1f51b5057
2023-11-22 08:23:38 +08:00
Arthur d5c12f9b9d ENH: improve support style's tooltip
jira: none
Change-Id: I8ee858d7052f04ce7ea6b226a500c7d1bf8a482f
(cherry picked from commit 665f31c4fcde22bd894cbb4a5fb160635947f2a4)
2023-11-22 08:23:38 +08:00
zhou.xu 099756fc1a FIX:fix bugs of non manifold edge
Jira: STUDIO-5267

Change-Id: I8ac9a2cf96da0bc07ee00b309e65611b92fd174d
2023-11-22 08:23:38 +08:00
zhou.xu b5bac96e39 ENH:is_equal for min_z and max_z
Jira: STUDIO-5267
Change-Id: I9493883d8be9d44e26ddc9afe62b7e9eb09c5052
2023-11-22 08:23:38 +08:00
zhou.xu 2798ce49ec ENH:add _A and _B for perform_with_groove
Jira: STUDIO-5267
Change-Id: Iee3310dfa1cd8e6680310f0af0eff5c817490813
2023-11-22 08:23:38 +08:00
Arthur 4bd2b7f96d FIX: compiling error on linux
jira: none
Change-Id: I1a4563503b5ddf74a1979cc0cee7a15b8aced904
(cherry picked from commit de52c6ca62c9f3a6314ddf5a856c1d8534329886)
2023-11-22 08:23:38 +08:00
Arthur bf93fd02fb ENH: open support wall count for normal support
1. open support wall count for normal support
  Enabling this option makes normal support stronger and gives
  better overhang quality, but also more difficult to removal.
  Jira: STUDIO-5192
2. fix a bug where tree support (hybrid style) may get overlapped
  extrusions near the walls.
3. fix a bug where raft layers can't be 1 in tree support
  Jira: STUDIO-5261

Change-Id: Iadc0c67a9b50b5b221c8e83d5aa22ed282018cf8
(cherry picked from commit c0bb0084e386cb70ed6e16edf93190e4b38f5b90)
2023-11-22 08:23:38 +08:00
SoftFever bdaba79455 ENH: add small perimeter speed and threshold
The original param is added by Prusa. Thanks orca for adding threshold.

1. Re add small perimeter speed and threhold.

github: #2221

Change-Id: I35b269b26f085d80f0edca28650bb21fc04898d7
2023-11-22 08:23:38 +08:00
xun.zhang 0ece8534db FIX: scale problem in lift type decide
1. Scale the travel threshhold

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ib594d640fe63b0919bc9318af88577513f7dbf30
2023-11-22 08:23:38 +08:00
chunmao.guo 394b65ab5f FIX: skip hold user preset from sync
Change-Id: I2252246e19bd80903ad82170782ea49535d30d05
Jira: STUDIO-5185
2023-11-22 08:23:38 +08:00
maosheng.wei 417d2eeb90 FIX: 3733 backup time not effective
Jira: 3733

Change-Id: I50c2ce156fcbd0a17aa8a6777bce04aa6093c830
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-22 08:23:38 +08:00
zhou.xu f5637dac77 FIX: merge the patch from Prusa
Thanks for PrusaSlicer and YuSanka
Jira:STUDIO-5175
commit 510d59687b3b19c4a0f4e6540620d0694dd1b7ac
Author: YuSanka <yusanka@gmail.com>
Date:   Thu Oct 5 14:13:14 2023 +0200
    Follow-up 1b451cdf: Fixed #11415 - Connectors disappear when slicing => only when using multiple cut planes AND excluding parts

Change-Id: I9ccd5b85f482d723d21fccf5e104c9e0a9cc4849
2023-11-22 08:23:38 +08:00
Arthur 82d5935a5e FIX: align to Y not working
This is a bug introduced in 7fbb650 when solving jira STUDIO-4695.
Now we use a more decent way to solve it.

Change-Id: I92deffcb9fe53e8a24c93fe973446ae37df07375
(cherry picked from commit bd98430dbd15eb6c9bb4b447990e0dcf8a50eef0)
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
xun.zhang 1d5c7bd442 FIX: scale problem in needs_retraction
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Idfbe954b22fa6aa5769c55e46874fa6a80ecbf45
(cherry picked from commit 4e853f50b748e3af11e2d64862b6ee557fda361b)
2023-11-22 08:23:38 +08:00
the Raz 23c5fab0a1 Allow line width of nozzle diameter * 2.5
As it were, 1 mm would be disallowed but 0.99 would be allowed for 0.4
nozzle.  1 mm is the sane maximum and 0.99 is unnecessary tedious to write.
2023-11-13 08:52:31 +08:00
chunmao.guo 268fa5dc8b FIX: missing unlock cause device or resource busy
Change-Id: I87563312ea9c6ce4e4e471da7ce7a02b53b64762
2023-11-09 10:09:10 +08:00
maosheng.wei cb11021a56 FIX: [5159 5165 5171 5172] create printer and filament issue
Jira: 5159 5165 5171 5172
5159 create printer dialog no refresh
5165 create printer 2 step dialog no refersh
5171 change font
5172 edit filament dialog darkUI issue
input special character is prohibited
'/' in preset name translate to '-'
update printer combobox

Change-Id: I5fa27836dab7f604f1a065c65efa099c7a2f0f96
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
chunmao.guo a9ec427259 FIX: upload custom root preset fail
Change-Id: I621c8d542dd604b07cc5df63d97d7a31558d3aba
Jira: none
2023-11-09 10:09:10 +08:00
maosheng.wei bb31e912ef FIX: Generate UUID from objectID and volumeIndex
Jira: XXXX

Change-Id: I65147ef9b695f8af8de260d722e604b0e0bab563
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
qing.zhang 525c0464a3 FIX: add skip label before tool change
Jira: 5074
github: 2776

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Icaafd3b45da1e78c1a82e7d17d7505d9439b9100
2023-11-09 10:09:10 +08:00
maosheng.wei e0d38f15cb FIX: [4492 4851 4883 5121] create printer issue
Jira: 4492 4851 4883 5121

Change-Id: If252b5f30be0403f79410aa8c00fc14b066d5bbd
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
maosheng.wei f7234aa943 FIX: UUID conflict issue when referencing volume
Jira: XXXX
3mf file standard

Change-Id: I953a87294684ea85d03a95e7d2843c096904aeae
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
wenjie.guo 79eb44635d FIX: Z hop is still enabled when upper boundary is zero.
Jira: STUDIO-4893

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I5f46a02e1fbb15ff43e253e3a184aa6cc38e7598
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
Arthur 0e716584db FIX: do not generate sheath for normal support
Jira: none
Change-Id: I8f3f3e39171055f8d18c06ceee8e245594273238
(cherry picked from commit 93bc7ecf4346f179f502bebc3cf47b0030b56e2c)
2023-11-09 10:09:10 +08:00
Arthur 134f083bdb FIX: modify some default support params in code
1. Modify default values of some supports params, so 3rd party profiles are easier to setup.
3. Fix a bug that organic support may cause crash.

Jira: none

Change-Id: Icae348d8fe5985f4287404e96089198a499283f2
(cherry picked from commit 8889cfc703b72e142f288e525b89c87619f2213c)
2023-11-09 10:09:10 +08:00
chunmao.guo 575f188436 FIX: take custom root as AMS sync candicate
Change-Id: I9c71babcd74238d1533b15d77a978b19997c70c0
Jira: none
2023-11-09 10:09:10 +08:00
maosheng.wei d2cec9453c FIX: create printer issue
Jira: 5034 5059 5053
5034 create printer but filament is repeat
5039 create successful dialog remove to center
5053 create existing printer copywriting adjustments and preset updates
Delete printer secondary confirmation dialog

Change-Id: Ifb3822d1e168459d2af11e02b31ecaf3719d338a
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
xun.zhang ce2af1e011 ENH: default open support_interface_not_for_body
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I48e084deb18633f9ec47a8ec4ec643163bf66318
2023-11-09 10:09:10 +08:00
Arthur 7efebe6bc6 ENH: improve first layer tree support
First layer support can't be top interface, and
min brim width of auto mode should be larger
than 0.

Jira: STUDIO-5010
Change-Id: I02f8b017b535f8a47965387e8679f692b1966e04
(cherry picked from commit 3e7d54abe352e8ab5f9d6492b5a86a96f9067f94)
2023-11-09 10:09:10 +08:00
maosheng.wei 5f0dc7faed FIX: export and import configs issue
Jira: XXXX
import config lose xxx_settings_id issue
export process config should not have user printer
export process config shoule remove duplicate presets
export filamnent config: filament list should have no third print compatible presets

Change-Id: I94bac062e07b3a989ff86142e3fb8266a48364c6
2023-11-09 10:09:10 +08:00
maosheng.wei 44d61cd0a6 FIX: enable yes/no to all button
Jira: XXXX

Change-Id: I34bdefd1a14a24de7973e23f8d92cb3da296d017
2023-11-09 10:09:10 +08:00
lane.wei fd15ceb1fb ENH: translation: removed some unuseful texts for tranlation
these texts are only used under CLI
JIRA: no jira

Change-Id: I223fc2e191e2a5d82a1dcb250c1c78537bc6d6f2
2023-11-09 10:09:10 +08:00
chunmao.guo 7a29a49f9e FIX: select old preset after clone presets
Change-Id: Icd5c0cce6b0771384296db7c3ece022a715ece48
Jira: none
2023-11-09 10:09:10 +08:00
maosheng.wei 7ea13aad76 FIX: import config and update compatible
Jira: XXXX

Change-Id: Ic91a1021e7fab7c77454538336765c1017a41427
2023-11-09 10:09:10 +08:00
liz.li 34abdf0233 FIX: hide spiral mode of plate config
jira: STUDIO-4902

Change-Id: I54a4a281294afcd048be23bd9ab3b33cc73ce2bf
2023-11-09 10:09:10 +08:00
Arthur a006286465 FIX: organic support doesn't work with raft
Fix organic support issues by syncing with Prusa's changes. Thanks to Prusa.

Jira: none

Change-Id: I96fa1a939767bb0b0d2e8a5fd72966bb10a2042e
(cherry picked from commit 89607dc73313e1b5d389674ed2d8f4f358bcb8b9)
2023-11-09 10:09:10 +08:00
chunmao.guo ea237758fa FIX: Fix user preset update time
Jira: none
Change-Id: I52206946ae4c2e606cd942c9d531c1e106ec1c11
2023-11-09 10:09:10 +08:00
lane.wei c1f891b646 ENH: preset: refine logic to judge Preset::is_bbl_vendor_preset
JIRA: no jira
Change-Id: I64dedd76c10624ca51104a2c61b11d4c0f523646
2023-11-09 10:09:10 +08:00
chunmao.guo b9898d1cf5 FIX: Fixup possible data lost in user presets
Change-Id: I345f770a14d674dd5e48c94505470ead3487b745
Jira: none
(cherry picked from commit c1e9cf4e233bfc1132a9ffc16d8e875f142be4f6)
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
maosheng.wei f3599d555c FIX: create filament issue
Jira: 4917 4920 4928 4933 4934
4917 filament preset name too long to dialog too long
4920 too long fiilament preset can't save
4928 limit preset tree size
4933 edit filament dialog remove cancel button
4934 update preset tree and refresh

Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
Change-Id: Ibf708911576324a58c5640a50f5207b45a69b4e9
2023-11-09 10:09:10 +08:00
xun.zhang cc0b28ae28 ENH: use bounding_box of whole model for levelling
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I3cc67aa6ca8b6e61f356525e41f1fc57f7b64ff1
2023-11-09 10:09:10 +08:00
xun.zhang 9719fa81ef ENH:support interface filament not for body option
1. Add a option to prevent support interface filament being used in
support body

jira:STUDIO-4847

Change-Id: Ic6e9f663b71a7e4d9cd1bca399c0da2ce22bb5b5
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
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
Arthur 0964b5bb0a FIX: tree support generates floating hybrid supports
Jira: STUDIO-4763
Github: #2660

Change-Id: I13d5a1443af8bc82f0cadd177e0db3fc3db971f1
(cherry picked from commit 04cb09b1f63db232854e6ce0734fbff6f5945b8d)
2023-11-09 10:09:10 +08:00
chunmao.guo d787873e97 FIX: not upload non-bbl presets
Change-Id: I677a4790aad47750bfede100ce95d0db2320a041
Jira: none
2023-11-09 10:09:10 +08:00
chunmao.guo 1ebd16dc17 FIX: [STUDIO-4578] use middle thumbnail in 3mf
Jira: STUDIO-4578
Change-Id: I2276477da0167218f8ea0ca39d820db38f1af22c
2023-11-09 10:09:10 +08:00
Arthur d7a4623380 FIX: improve tree support generation speed
1. Improve generation speed by removing unnecessary get_avoidance.
2. Fix a bug of hybrid support's interface (Jira: STUDIO-4878,
   STUDIO-4726, Github#2614)
3. Fix a bug of tree support pass through objects (Jira: STUDIO-4252, STUDIO-4608
STUDIO-4298)
4. Fix a bug with first layer + Arachne (Jira: STUDIO-4281, Github #2423)

Change-Id: I40978c93ab93fa6964483514dad552d73a66c710
(cherry picked from commit 2ccbbe49c74d4aab4f086e79a6f8262b7fc80f15)
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
zhimin.zeng 5503c59c1e FIX: The status of cali is not correct when switch printer
Jira: STUDIO-4782
Change-Id: I9894e4c84bf30f1fbb3b833f5ed4f40c9cb01be7
2023-11-09 10:09:10 +08:00
maosheng.wei 7aa857bf0f FIX: create printer preset dialog issue
Jira: 4890 4886 4880

Change-Id: If3bc20cf8f8c80d49cf6baf70ed9892710fc0c0c
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
maosheng.wei 1d08d427ac FIX: fix create nozzle for exist printer issue
Jira: XXXX
copy some new parameter for new preset

Change-Id: If17f329eea541d9da332185367b2ea1b7972d2dd
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
chunmao.guo 6dcfccdeab FIX: default preset has self base
Change-Id: I011445018c010ed2b0d6746389f8484d00d0be78
Jira: STUDIO-4868
2023-11-09 10:09:10 +08:00
xun.zhang ae40f0fc4d ENH: add firmware retract for 3rd printers
1. Add firmware retract for 3rd printers. Use G10,G11

Github: #2319,#969

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: If3a3d591c249a4323a08045f3cc86ffb3e477d0e
2023-11-09 10:09:10 +08:00
xun.zhang 700c574224 ENH: add bed match result after gcode export
1. Add bed macth result after doing gcode export,according to filaments
used in first layer

jira: [NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Icf70fce0310b86fffc5276fb8fb3bf4cc14afcb0
2023-11-09 10:09:10 +08:00
arthur 76f876a3c6 ENH: improve tree support
1. add a hook inside tree branches for improved strength
2. fix the issue that interface may fly as a mess (delete the logic
  where gap nodes can skip dropping down)
3. fix the issue that base nodes may fly as a mess (smoothing should
  skip polygon nodes, see Jira:STUDIO-4403)

Change-Id: Ie9f2039813c2ca3127ed8913304cc455fec8e7ee
(cherry picked from commit 83cef5f91d49ff3d275a89ec3df8b5f0fd573f8c)
2023-11-09 10:09:10 +08:00
xun.zhang a62bf3b838 ENH: refine logic for chamber temp and exhaust fan
1. Add chamber temp option for 3rd printers
2. Move support_air_filtration option from develop mode to advanced
mode

jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I9cb4263fc12d9d5edcf2595d97143446b3e63316
2023-11-09 10:09:10 +08:00
xun.zhang fa61e25c51 ENH: set max_volumetric_speed to 70
jira:[NEW]

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I6d2b366ac2c6adaa4b075a0f64b3c17d8f47781a
2023-11-09 10:09:10 +08:00
Stone Li e6a9adabcb ENH: fix a translation error
JIRA: STUDIO-3997

Change-Id: I88cd74524deac72465833dfdc18e4c5905cb1a6c
Signed-off-by: Stone Li <stone.li@bambulab.com>
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
maosheng.wei 042bf04446 FIX: add import and load config log
Jira: XXXX

Change-Id: Id32e28cf2cf30816d14f9810feb29eaf24e83231
2023-11-09 10:09:10 +08:00
maosheng.wei 931343f071 FIX: fix Generic 3mf upload failed
Jira: XXXX

Change-Id: I4718ed9fa363ff016ebe2c7976beb5e3863353d2
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
Arthur af1af05a98 ENH: auto arranging put rectangle objects better
1. Rectangle objects get higher alignment weights, so they are aligned
better and we can now pack more of them.
Jira: https://jira.bambooolab.com/browse/STUDIO-4790

2. Fix the bug that align to Y axis may cause object flip 180 degrees.
Jira: https://jira.bambooolab.com/browse/STUDIO-4695

Change-Id: I0cccc3291c154848f8e0e8ef1aca7045518aef80
(cherry picked from commit 7fbb650d4d3d187277f849273cf76b4d0989a67f)
2023-11-09 10:09:10 +08:00
maosheng.wei adbed9c88d NEW: [4073] create new nozzle for exist printer
Jira: STUDIO-4073

Change-Id: Idee8067faf96d75cdf20928559c05debcf9b3f3b
2023-11-09 10:09:10 +08:00
qing.zhang c5f1c22c51 ENH: put wall order to object level
Jira: [new]

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Idda8b1351ac880602f5da518d1146042dcd77795
(cherry picked from commit c6a5c8233bb013f6e272fef4f6e77748549d81e4)
2023-11-09 10:09:10 +08:00
maosheng.wei 77e1b33d9a ENH: [STUDIO-4774]Move Template to a separate folder
Jira: STUDIO-4774

Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
Change-Id: I4669aa51a3b4d6bd92805935602bfb3fef374cfd
2023-11-09 10:09:10 +08:00
Arthur 8d74732348 FIX: auto arrange estimates wrong wipe tower
Jira: STUDIO-4678
Change-Id: Iff2273b464db939a2b5e19f8791bd2a4d67ce8c1
(cherry picked from commit fe4b1f79faeade42300622367fb23d7bd1079785)
2023-11-09 10:09:10 +08:00
maosheng.wei 735ef3dc8a ENH: remove create filament entry to guide
Jira: 4036

Change-Id: I86aa3423761956120e9bf42dcb8eca76dd44202b
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
2023-11-09 10:09:10 +08:00
Arthur 3d5aa9479c ENH: auto-arranging allows more filaments together
Auto-arranging allows more filaments to be printed on the same plate

Only HighTemp and LowTemp filaments are not allowed on the same plate.

Jira: https://jira.bambooolab.com/browse/STUDIO-4682
Change-Id: I1bd4966e6aaa55a6dd9dff05f0bd94f2795a62b0
(cherry picked from commit 965040912af0555ca190702e7c7ac92e177a2922)
2023-11-01 09:33:21 +08:00
Arthur 2bd8a0806b FIX: exclusion region may be too close
Auto arranging may put exclusion region may be too close.
Jira: none

Change-Id: I613a2525620cf58cd9da7d27e8bb6d9d0a52d807
(cherry picked from commit a8ed3929d3596b8ee5400c9376ca040c75025524)
2023-11-01 09:33:21 +08:00
maosheng.wei eb1d7247f7 FIX: Volume id incorrectly replaced by object id
Jira: STUDIO-3743

Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
Change-Id: Ib3bd8d0b70e5c0cd08af343a0eb5bd38d9a5f73e
2023-11-01 09:33:21 +08:00
lane.wei 6c2ad86415 ENH: preset: add logic to check the modified gcodes when loading 3mf
when the 3mf contains modified gcodes or self defined presets
a popup window will be shown
JIRA: STUDIO-4628

Change-Id: I975758132ba9d200255e7bf7d3a606fd609da5c8
2023-11-01 09:33:21 +08:00
xun.zhang 5ff6496ec5 ENH: refine some tip with softening temperature
1. refine some tip
2. alert when bed temperture greq than softening temperature

jira: STUDIO-4532
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ib9623553a40825015744783f30c6e439827a49c6
2023-11-01 09:33:21 +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
xun.zhang 7744f5e479 ENH: refine tl temp check logic and tip
1. refine warning tips

jira:STUDIO-4532

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ida6f8a8a4fca5cf8cf04e622bd2f3af1baf82d52
2023-11-01 09:33:21 +08:00
salt.wei adce446e38 ENH: fix 0 space exception when slicing
JIRA: none. found by cli slicing

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I47a754e99e193394b0d34cd05e27304910af521f
2023-11-01 09:33:21 +08:00
xun.zhang 74c64229b4 FIX: wipe tower weight when insert filament change
1. fix exception when insert filament change

jira: STUDIO-4353
Change-Id: I4f5e3c5edfe2a1f62db2d4a7aefee86d3f5a260d
2023-11-01 09:33:21 +08:00
qing.zhang fe076075df FIX: inner wall width error on top one wall mode
under arachne mode
Jira: 4646

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Iea09e12b9ab2ed6cbd3c7bef23f0acdbeb1e3017
2023-11-01 09:33:21 +08:00
maosheng.wei 99cd350406 ENH: limit network request times
Jira: STUDIO-4615

Change-Id: If365de54d3028f98cf3a720873378ba6fcfa5589
2023-11-01 09:33:21 +08:00
salt.wei 560c33c452 ENH: save overhang polygons in cache data
JIRA: none

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6887774f986843b094c05da48de3e2d6234a2c9e
2023-11-01 09:33:21 +08:00
lane.wei c3f9054ef3 FIX: CLI: fix a 3mf saving issue
some model returns -122 which is caused by the picture size not aligned
JIRA: no jira

Change-Id: I6501403262dfd271e3022ef70ee11b1ac4d6651b
2023-11-01 09:33:21 +08:00
maosheng.wei d01a3c331b FIX: [STUDIO-4502 4505 4558] create filament dialog issue
Jira: STUDIO 4502 4505 4888

fix: 4502 modify vendor
fix: 4505 renew preset name in filament combobox
fix: 4558 reload from disk, delaying busyinfo
fix: encoding filament preset name

Change-Id: Iff55f539c5b0dd4c96ef22ba84ef22ce4d762443
2023-11-01 09:33:21 +08:00
zhou.xu f9f44d0785 NEW:add groove cut function
Jira:STUDIO-4227
Approximately 70% of the code comes from Prusa,thanks for PrusaSlcer and YuSanka

commit 492e356a21734b3503caae115fbb280da5fbaa22
Author: YuSanka <yusanka@gmail.com>
Date:   Thu Aug 3 16:09:28 2023 +0200
    CutGizmo: Fixed and improved Undo/Redo.
...

Change-Id: I63abb69180aec2ab0ce9bc8f30477d9e9a25a5fb
2023-11-01 09:33:21 +08:00
zhimin.zeng 88e27d84c2 FIX: the wipe tower generated incorrectly
when the first support interface layer is default color, and the support filament is different
Jira: XXXX

Change-Id: Ibec1eb266ca86947cb56f7bfb4546569f66b1036
2023-11-01 09:33:21 +08:00
wenjie.guo d3db1f2537 NEW: path planning algorithm
Astar.hpp, JumpPointSearch.hpp and JumpPointSearch.cpp are from Prusa.

Github: 1793

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>

Original Authors:
tamasmeszaros <meszaros.q@gmail.com>,
Pavel Mikus <pavel.mikus.mail@seznam.cz>

Change-Id: I72f68d59bc8bb3b7cc0f37276c10811bca2ac38c
(cherry picked from commit 7a14a6a48af68b6a3d7985bdb9c171aabeb70817)
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 f2ee0daef5 ENH: config: add local logic into config.load
JIRA: github-2569
Change-Id: If593b9faee324dda096a27873587db27aa22129e
2023-11-01 09:33:21 +08:00
lane.wei 38b86616ce FIX: fix the config parse error for some language
JIRA: github-2568
Change-Id: Idd1ccb118dde4d0fe663ee4d1e4426c0e504ff1e
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
maosheng.wei 20f2210e36 FIX: [STUDIO 4483 4489 4493 4494] create filament issue
Jira: 4483 4489 4494

fix: 4483 Window flashing
fix: 4489 dark ui combobox is blur
fix: 4493 add scrolled window
fix: 4494 encoding issue
fix: sync user preset remove the base id

Change-Id: Ida509e7e73d12613611933b1855feee9c1886478
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
qing.zhang d98a3053ab FIX: fix crash while outer wall width is 0
Jira: 4437

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I5e4a15d3e8b428612cc7988789719697f23dde2e
2023-11-01 09:33:21 +08:00
wintergua 6b30b0fe5f ENH: Disable thermal analysis in auto Brim
since the accuracy issue

JIRA-ID: https://jira.bambooolab.com/browse/STUDIO-4534
Change-Id: I68f730abf90e0bf61ac25d4fa66c2c3ac8bacb29
(cherry picked from commit 9751e2504cd5c5748c02d42624318e4723ac9b57)
2023-11-01 09:33:21 +08:00
Arthur 0533537079 ENH: do not include brim_max in bed shrink
Including brim_max in bed shrink will make available area of bed be
small when an object has tree support, because this object will have
a brim_width as large as 24mm now.

Jira: MAK-2048
Change-Id: I309c0ec14e4acd75dcfc2fff0e7ea3558b43cc4c
2023-11-01 09:33:21 +08:00
zhimin.zeng 321a505a33 FIX: the wipe tower is not generated with a multi-color 3mf
open a multi-color 3mf after another one, the wipe tower is not generated
Jira: 4528

Change-Id: I3b9b67e6a19f6d1b620b5aeca25e32710193574c
2023-11-01 09:33:21 +08:00
Oleksandra Yushchenko 56ab965af1 NEW:add CutUtils class and its_make_groove_plane for cut tool
Jira:STUDIO-4227
most of code from PrusaSlcer,thanks for PrusaSlcer and YuSanka

commit 1b451cdf9f8859aff58df54fa89d689aa47518d7
Author: YuSanka <yusanka@gmail.com>
Date:   Wed Aug 9 13:22:11 2023 +0200
    CutGizmo: Big code refactoring.
    All manipulations related to cut are extracted to CutUtils now
...

Change-Id: I4e93e19b8e0d46ec2395247796c59587574851cb
2023-11-01 09:33:21 +08:00
wintergua 3afdf05e3e FIX: the brim generated from inner island should be limited
Inner island is the one which inside a hole of the object. the brim area of such island should be limited by the hole

JIRA-ID: https://jira.bambooolab.com/browse/STUDIO-4521

Change-Id: Iae70dbefc87b0cb7dcb19578f29aad16e9bd630d
(cherry picked from commit 2bf63f0ece88a230a37f83d156a44bdc76a0d094)
2023-11-01 09:33:21 +08:00
Arthur 14a3b244a0 FIX: cmd line auto arrage for sequential printing not working
min_obj_disance was not set for sequential printing of cmd line.

Jira: None

Change-Id: Idce14aedf8448a0917533efb93f7c78fff34587d
2023-11-01 09:33:21 +08:00
maosheng.wei 998f53a585 ENH: [STUDIO-4047] Export presets dialog
Jira: 4047

Change-Id: I91c5b684784c6c3e31fa0ac53698976732f843cf
2023-11-01 09:33:21 +08:00
zhimin.zeng 3013d89b6b FIX: Adjust error information storage method
Jira: XXXX
Change-Id: If6564f6425678faa2df9b08d9c7642afb7ffbe50
(cherry picked from commit 9df5c5afdbdcb22b6af41f4b953e56ca8e736989)
2023-11-01 09:33:21 +08:00
Arthur 6612086816 ENH: do not leave a gap for top interface if the top z distance is 0
Previously when the overhang is a slop, it's controled by the xy
distance. Now we control it with top z distance as long as it's an
interface.

Note: Not working with Snug support, which has a different mechanism of
support interface.

Jira: STUDIO-3991

Change-Id: I1b7c4cf892b4c4ec2f3e668bd966ab0971212364
(cherry picked from commit c094b5ec83dc98dca7a8b8c0438b8f1994134db6)
2023-11-01 09:33:21 +08:00
Arthur a631e6cb99 FIX: tree support detect overhang inaccurate
Jira: STUDIO-3657
Change-Id: I1ef4ca3ec299b121eb467afc12acee68e0f12b39
(cherry picked from commit 36f8937ae0d0d79c7558662903fffef20b528cb8)
2023-11-01 09:33:21 +08:00
Arthur 2bd6b11505 ENH: improve auto-arranging objects with tree support
We decide to set brim width of all objects to MAX_BRANCH_RADIUS_FIRST_LAYER if there is an object with tree support after discussion.

Jira: MAK-2009
Change-Id: I4c4940800632c433235966b01c44ac910e33a51c
2023-11-01 09:33:21 +08:00
zhimin.zeng d462a4af8e FIX: print by object not support timelapse for I3
Jira: XXXX
Change-Id: I8354971843f1e020db0f6407348cfa220ad514f2
(cherry picked from commit 8e8d0c47bdc7f60be901575b1202a1fc0e1942db)
2023-11-01 09:33:21 +08:00
Arthur 64ee3d946f FIX: auto arrange may put objects with tree supports too close
Increase the brim width to the max full diameter of tree supports.

Jira: MAK-2009
Change-Id: If44da7107f79eddccca42a54484806269e3fee5c
2023-11-01 09:33:21 +08:00
salt.wei e7c380b364 FIX: fix memleak related to config clone
JIRA: none, found by self test

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ifbab17d543c60a767c0a53e1bca7dfe77bd8fbec
2023-11-01 09:33:21 +08:00
liz.li 92f2d8c37c NEW: add plate tab at objectlist
Jira: STUDIO-4154

Change-Id: Id24517df3c15cc3907cb6b1fe0ea9d1b6c6d1e56
2023-11-01 09:33:21 +08:00
salt.wei 8b428c4ea5 FIX: handling for some memory leak
JIRA: none. find by self test

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I450e872039331ccbbf885540dfa526704afe1c20
2023-11-01 09:33:21 +08:00
Arthur 2b593ce378 FIX: adaptive layer height may mess up support layers
We must ensure when independent support layer height is enabled, the
support layers are strictly synced with object layers. Otherwise, the
wipe tower toolchange may be messed up.

Jira: STUDIO-4097
Change-Id: I6208653f9665b15d028940d5e130c9e895629fc2
(cherry picked from commit 41d35c8af152c91cb356a68d88a879a115b44778)
2023-11-01 09:33:21 +08:00
shuai.liu f47a0408e7 FIX: [STUDIO-3921] orientation bug
JIRA: STUDIO-3921
fix the orientation bug that multiple objects does not perform the same
increase num of hull faces to iterate

Change-Id: I9c662e1e7858521585de612d7f1e9cd213e183bb
(cherry picked from commit 6a781a338df9d5a009ac5a667e8b1bc8009e32a9)
2023-11-01 09:33:21 +08:00
xun.zhang 6a5e3b3646 ENH: add cost info when loading GCode file
Add total cost infomation when loading Gcode file

jira:STUDIO-4353

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I930cb141e2a0b3cf328515f6543707c8bd5d620a
2023-11-01 09:33:21 +08:00
xun.zhang 81bab138b5 ENH: seperate wipe tower weight from model
jira:STUDIO-4353

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ia8a030314ab995c57a0990d08a966382f6f0eecc
2023-11-01 09:33:21 +08:00
Arthur 181b05c236 ENH: tree support uses accurate lslices
For tree support, use lslices as tree support island when generating brim,
as this is faster and more accurate.
For normal support, still use "support_fills.polygons_covered_by_spacing()" as support island when generating brim;

Jira: studio 4332

Change-Id: Ibfadd3a166606f824e5780b57112fff221470aaf
(cherry picked from commit 64960b19818c7029eaaaf3d8a89804aeaa26f11d)
2023-11-01 09:33:21 +08:00
enricoturri1966 bf23f6f023 NEW: add TransformationSVD and some apis in Geometry
Jira:STUDIO-4227
add TransformationSVD and some apis in Geometry for cut tool
these code from PrusaSlice,thanks for enricoturri1966
the original commit message:

commit 22ccb5657834e1b2fe548dc647a77044bc9c38f4
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Thu Feb 2 09:07:03 2023 +0100
    Added class TransformationSVD to detect transformation matrix components using singular value decomposition
...

Change-Id: I4ce736449029d1fec22def20ef50fa20e1f48713
(cherry picked from commit da9e8127f5214f095da2db9a7898d2e0e84a0214)
2023-11-01 09:33:21 +08:00
zhou.xu 487c86e915 NEW: support to edit bed stl and texture for third-party printers
Jira:STUDIO-4209
some codes are referenced form PrusaSlicer,thanks enricoturri1966 for the original commit

commit cf380fb4564fec4bd731e34819102f66fda23e75
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Tue Sep 21 13:51:57 2021 +0200
    Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS - Out of bed detection for circular printbeds
...

Change-Id: I1b1e2ff045286566d4fb9f2d8ad4faa1f135f60c
(cherry picked from commit 284bca9f1f4cdb9eb405e8205cd50666a2b0b2a0)
2023-11-01 09:33:21 +08:00
lane.wei 384b0793ff FIX: CLI: fix the png decoding error
JIRA: MAK-xxxx(no jira currently)

Change-Id: Id99511355cec7a51cafd5254f308c60a7ac1f57d
2023-11-01 09:33:21 +08:00
xun.zhang 4d5fbb03f0 ENH: set skirt_distance maximum value to 50
Github:2318

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I538d48321552b110d6fe2949c3202077f788da41
(cherry picked from commit 286926648b378100e522cefb664c095a2ba7b619)
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
zhou.xu 7e51bf41a1 NEW: add snap connector
Jira:STUDIO-4227

most of the codes are referenced from PrusaSlicer,thanks YuSanka for the original submits

commit 7cd99d98f537198b78158feced2aa8977bfcbe08
Author: YuSanka <yusanka@gmail.com>
Date:   Wed Jul 12 18:06:51 2023 +0200
    WIP: Cut with Rivets
    * Code refactoring: get_connector_mesh() and apply_cut_connectors() moved from ModelObject to CutGizmo.
    * Allow to change values of space and bulges for snaps
7cd99d98f5
...

Change-Id: Id4c7991a0ed5bf9608823601775920a81a3dd1c4
2023-11-01 09:33:21 +08:00
zhimin.zeng 098652e754 FIX: filament override is not correct
Multiple filament slots does not change the actual filament settings
Jira: 3797

Change-Id: Ib377b4c79aae731caa97b408e84a87a33b3bb155
(cherry picked from commit 7d704d8f0bae14f16087c77c1bd90946632330a6)
2023-11-01 09:33:21 +08:00
Arthur c5db5551bf FIX: skip gcode path conflict check for adaptive layer height
adaptive layer height won't work with conflict checker because m_fake_wipe_tower's path is generated using fixed layer height.

Jira: STUDIO-4442
Change-Id: I964a69af2fa0be8224ffc11e4c86f8ccf6dbf152
(cherry picked from commit e8c915f9e0b8c8f6cb549259b20d6d850a06d7d3)
2023-11-01 09:33:21 +08:00
xun.zhang c00f944308 ENH: add func to get filament hrc by type
1.Support get filament required hrc by filament type

jira:STUDIO-3518

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: If0c1699331b75da17380b9eeca7bb155d98a14c2
2023-11-01 09:33:21 +08:00
zhimin.zeng ff10078fa7 FIX: crash when import svg
Jira: 4084
Change-Id: Ib81631615208b0c884c5ce36211841292c2e3ea3
2023-11-01 09:33:21 +08:00
Arthur 76d073a9ea ENH: improve auto arranging's wipe tower logic
1. If there is already a wipe tower on current plate, leave it there regardless need_wipe_tower flag.
This is useful when we have toolchange custom gcodes.
2. Correct wipe tower pos to prevent it outside bed.

Jira: STUDIO-4426
Change-Id: Iedecc7c5fe7ced01533d0a302253841046a7fb42
(cherry picked from commit e8d728e46b12baaf9fb0e87e3d14197ae3616826)
2023-11-01 09:33:21 +08:00
liz.li 76f3f22bcc FIX: layer height cannot exceed limits
Jira: STUDIO-4279

Change-Id: I9c580f9192f7d37123d76e72a62022a48c2a5315
2023-11-01 09:33:21 +08:00
tao wang 1a24681885 NEW:optimize printer config files
jira:[STUDIO-4051]

Change-Id: I77cb16e62546eae63a73f8d12d7f11f496555197
2023-11-01 09:33:21 +08:00
Stone Li aa87c4fd34 ENH: add anti-Aliasing when generating small thumbnail
JIRA: STUDIO-4374

Change-Id: I9bd9cadd1b3b226d1679a00d5a129c4ed9cb1828
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-11-01 09:33:21 +08:00
zhimin.zeng 48fcf4b012 FIX: spiral vase not support timelapse for i3 structure
Jira: XXXX
Change-Id: I2dd5c285c4d687d72a2dfcf94d0ff75a4d5dd498
2023-11-01 09:33:21 +08:00
zhimin.zeng 15d15cd3aa FIX: The calibration temp of the temp tower is incorrect
Jira: 4382
Change-Id: Ib44f4e0e9309b89a3e6364541d775b30ca4c6d70
2023-11-01 09:33:21 +08:00
maosheng.wei 7b4669d715 FIX: [STUDIO-4036] load filament_id when reload user filament preset
Jira: 4036

Change-Id: I4a47e31938b9ebe26f0d7769bcf21098161084bb
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
zhimin.zeng 3347ce92df FIX: PA cali results are not obvious(0.2mm diameter)
Jira: XXXX

Change-Id: Ie7dd6f39f8cc396f65bdb9ef0a8df25b0241518e
2023-11-01 09:33:21 +08:00
maosheng.wei 743f485fad NEW: [STUDIO-4036 STUDIO-4073] create filament and printer dialog
Jira: 4036 4073

Change-Id: I073ee4a2af4c86332e6d052f5d7322c9f2784184
(cherry picked from commit f4ec32929e1e6ebecd87e2e709636a43be497265)
2023-11-01 09:33:21 +08:00
Arthur ad9fa81b01 ENH: add a new support style "Tree Organic"
Add a new suport style "Tree Organic" from Prusa, as organic support is
faster and seems more strong in some cases. Thanks to Prusa.

Feature detection including sharp tail, small overhang, long cantilever,
are still kept.

Known issue: first layer support path may go outside build plate.

Jira: STUDIO-2358
Github: #2420

Change-Id: I4cec149bf4fa9eb733ae720ac1a7f65098e3b951
(cherry picked from commit d977bc5d3b4609f4fec0aa68152a33cacf184c4a)
2023-11-01 09:33:21 +08:00
liz.li b6995d8fb3 NEW: add spiral vase mode in plate config Jira: STUDIO-4127
Change-Id: I3bbcc1a165123ff81129e159ada1e00f23e38c68
2023-11-01 09:33:21 +08:00
Stone Li 66242d765a ENH: set default environment to PRE
JIRA: STUDIO-4373

Change-Id: I1a02dcf3288aef22d690c40e2b900a89249b2f5f
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-11-01 09:33:21 +08:00
Arthur 3c691ac086 ENH: improve auto-arranging's aligning to Y axis
Dominant direction is more accurate (solve the problem that cubes are
not arranged neatly).

Jira: STUDIO-4356

Change-Id: I8931f51a97bee96d5d9e75306481eae2e0cdc059
2023-11-01 09:33:21 +08:00
lane.wei 80e1b74703 ENH: Support: set the float air warning also to non-critical
JIRA: STUDIO-4217
Change-Id: Ic587acde0a566e4ea5217a5dc4f1ab8b6b155f5c
2023-11-01 09:33:21 +08:00
zhimin.zeng 563b1255eb FIX: add log for cali
Jira: XXXX
Change-Id: Ifce2d57d2694c5b39fec93529e6efffa036b8e68
2023-11-01 09:33:21 +08:00
Arthur 855c3d61ff FIX: tree support + raft may fail to slice
Do not skip generate_toolpaths if has no overhang but has raft.

Jira: STUDIO-4341
Change-Id: I0bdadb5f778e0e1fda686341c0860d0f0c160f0f
2023-11-01 09:33:21 +08:00
salt.wei 3536cec1ea ENH: fix collision of timelaps gcode when by object
Z height after timelaps gcode is changed. Should get
the new z height and save into gcode writer.

Jira: none, bug is found by self-test

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I25516def507782600f0f270a339c88ea01a472a3
2023-11-01 09:33:21 +08:00
Arthur 04ce14ca90 FIX: crash when support spacing set to 0
Jira: STUDIO-4339
Change-Id: Ic9198e21fbaa8992cc08628aefa8673ba82194b3
2023-11-01 09:33:21 +08:00
wintergua 5160c8c4f6 FIX: brim generation with extruder overridding in by layer slicing
in brim generation, object's first layer extruders are obtained from regions.
If the extruders are changed at certain layers in by layer slicing mode,
the extruders from layer regions are not right.

this patch fix that issue by updating the extruder overridding in
a new member "object_first_layer_wall_extruders" in "print_object" class during
constructing "Tool_ordering" class. then using the new member directly when generating brim.

besides, support contour, which should be no_brim_area, is obtained from "support_infills" instead of "lslices" of "support_layers"

JIRA-ID: https://jira.bambooolab.com/browse/STUDIO-4332

Change-Id: I271d0ea0d8c01c412d4fb9ade5296c6a6471aed6
(cherry picked from commit 9919ce9d1b9105b859273eee4fe9481c4dff6189)
2023-11-01 09:33:21 +08:00
xun.zhang 0eb9ac856b ENH: use json to store filament & nozzle info
1.Use json to store nozzle hrc
2.Use json to store filament temp type

jira: STUDIO-3488

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I8eb226e26352a41418f4e46d8cda403dc22ecff4
2023-11-01 09:33:21 +08:00
Stone Li eb8cb63d88 NEW: generate small thumbnail size in 3mf
JIRA: STUDIO-4282

Change-Id: I2f6e35bd643e950d15dcfacb9f6ecae8f8bd80fa
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-11-01 09:33:21 +08:00
xun.zhang 8d8b690adf ENH: optimize exhaust fan param display
1.Optimize exhaust fan param display
2.Set max chamber temp to 60

jira:STUDIO-3518

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0663803381f38f717554da4aefc61e02a8c1f37e
2023-11-01 09:33:21 +08:00
chunmao.guo 0db3fd9f81 ENH: [STUDIO-4034] add functions for custom printer/filament
Change-Id: I0fc2738392970b19c0ae8263ea7d968cc8f23c2f
JIRA: STUDIO-4034
(cherry picked from commit 30e5b3f61f2f5aae308d5e454f71d69939104ebb)
2023-11-01 09:33:21 +08:00
chunmao.guo f4ffe8621b ENH: [STUDIO-4005] support custom root preset
Change-Id: I0cf2142a2d3cee7269b53b73ad44e05934c2e9e6
Jira: STUDIO-4005
2023-11-01 09:33:21 +08:00
Lukáš Hejl 11b55ccd73 ENH: Added option for enabling interlocking between segmented regions
by the multimaterial painting.
This commit is cherry pick from Prusa, the commit number is
9bce0fcf9bb479c289c396e7e23ce95841a61628
Thanks to Prusa.
Jira: XXXX

Change-Id: I29ad1fa9ab3ccc393a1e2affde1ae869d0a33afa
2023-11-01 09:33:21 +08:00
zhimin.zeng c1d1e6efbb FIX: Incorrect exploded view after split to objects
and modify the incorrect assemble view after cut
Jira: 4182

Change-Id: I813a9179c54d544e745153186e09a4d82fc50dbc
2023-11-01 09:33:21 +08:00
wintergua e8f8a5d487 FIX: brim generation with raft
in previous codes, we generate brim for an object with raft, which do not need brim.

jira-ID: https://jira.bambooolab.com/browse/STUDIO-4238
Change-Id: I4b2c2c1c744c098cdcfdb03c2100b06a458e983a
(cherry picked from commit 0d06415d42c95e40f79a228f75827588171d410c)
2023-11-01 09:33:21 +08:00
chunmao.guo 0a991fa369 FIX: [STUDIO-4253] remove file exception in bbs_3mf
Change-Id: Ie585c4864239e7e25176fb316b5ed2e2249c9234
Jira: STUDIO-4253
2023-11-01 09:33:21 +08:00
tao wang 44eaa75110 FIX:fixed studio crash caused by HTTP request blocking
jira:[STUDIO-3849]

Change-Id: I6348af96014e80da6b720da48239fed262f0f3c5
2023-11-01 09:33:21 +08:00
xun.zhang bc53eb23fc ENH: modify tooltip in chamber temp
Also remove bed_temperature_difference in config

jira: STUDIO-4197
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id992bf0a6b5496038d513a6243b54c5232113515
2023-11-01 09:33:21 +08:00
zhimin.zeng 668106cc5d ENH: support traditional timelapse for i3 structure
Jira: 3935
Change-Id: I38a270f7d9060ea1b271c69fd0d427205817e705
2023-11-01 09:33:21 +08:00
zhou.xu 7df99021c1 FIX: normal_matrix calculation lack transpose in overhang
Jira: STUDIO-4244
Change-Id: If706f098c43f15aa407dde68e8a914bd53ab7188
2023-11-01 09:33:21 +08:00
slynn1324 6f1d04f270 ENH: support thumbnail in gcode for 3rd printers
Thanks @slynn1324
1. Add thumbnail size in printer params page
2. Optimize writing thumbnail data in gcode

jira:STUDIO-3942
Github: #2166
Github pull request: #2333

Change-Id: I6897cfddfa6a1b0c95decf67329a486d40ec0cc2
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
chunmao.guo 142499871e NEW: add best_object_pos for auto-arranging
For i3 printers, best object position may not be the bed center,
we need to align objects to the specified best_object_pos.

Jira: STUDIO-4133

Change-Id: I06e31e597d2dd8288eb24a52d836cc8a134a4111
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 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
lane.wei a22fd80bf4 ENH: refine the logic of extruder_clearance_radius
1. use extruder_clearance_max_radius instead
2. set the value of P1P/P1S to the same value of X1C
JIRA: STUDIO-4214

Change-Id: I1ae5e4203db0933854b4388b5505dbf34b40edae
2023-11-01 09:11:19 +08:00
maosheng.wei 6ce7bc8c49 FIX: [STUDIO-3743] 3mf consistence correction
Jira: 3743

Change-Id: I65d868753c380d5399c743d101668ef013549a38
2023-11-01 09:11:19 +08:00
manch1n 2a79af5729 NEW: add align_to_y_axis option for auto-arrange
1. Add align_to_y_axis option for auto-arrange.
   This is useful for auto-arranging of i3 type printers.
2. Change default value of align_to_origin to true when switching
   from non-i3 printers to i3 printers.

JIRA: STUDIO-2583

Change-Id: I7dabab846022a0da030a9fec060a60a4207537a0
(cherry picked from commit 9c549c18ecc1f513644e1bc4a60d6936721a13ac)
2023-11-01 09:11:19 +08:00
Arthur 5c3102c241 ENH: show support_interface_bottom_layers in advanced mode
Jira: STUDIO-4236
Change-Id: I71a2d8c46e588651781728307bd56bbca0ba9e15
2023-11-01 09:11:19 +08:00
xun.zhang 630b458f2d ENH: disable edit support chamber temp
jira:STUDIO-4230

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I4873badacc5d3947f56df1ea367481ddae748fff
2023-11-01 09:11:19 +08:00
xun.zhang 9737cd5f36 FIX: optimize exhaust fan ui logic
1. Enable open support_activate_air_filtration
2. Fix display exhaust fan params when support_activate_air_filtration is closed

jira:STUDIO-4230

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ieddba4bb104b6068b5afb4c109ea6b90d7c4045b
2023-11-01 09:11:19 +08:00
lane.wei 9755a65289 FIX: CLI: fix the brim related issues
1. move the global functions to Model
2. set brim automation paremeters before process
JIRA: STUDIO-4208

Change-Id: I3f75175ec74d214ca2a6d5f3ade56d08e0ecd4f3
2023-11-01 09:11:19 +08:00
Kunlong Ma 9a193fbfea NEW:[STUDIO-4063] auto calculate flushing volumes
jira: STUDIO-4063

Change-Id: If8db1375bc8c17d4c86307c1c93a717f6c0df05a
2023-11-01 09:11:19 +08:00
chunmao.guo d9de09bba6 ENH: [STUDIO-4135] only sync user preset that need update
Change-Id: I9a1c0f9c34a5f5950beffa1c5e8f63c4cf7be6c6
2023-11-01 09:11:19 +08:00
zhimin.zeng a05524417c ENH: Add Ellis' pattern method for flow dynamic calibration
Github: #2356

Change-Id: I05068bd47fa8381429064ea0e5ba0f38e5da17c1
(cherry picked from commit c5d54d26e32909e1785cef9ba6a07d801419fa98)
2023-11-01 09:11:19 +08:00
lane.wei f1362a7757 ENH: add the smooth pei bed type
smooth pei plate uses the same parameters as high temp plate
JIRA: STUDIO-4181

Change-Id: I9db8ca7440b5b205902fd4b35af6c24440e1104d
2023-11-01 09:11:19 +08:00
xun.zhang 5e23f73866 ENH: add protection for chamber temperature
As title. Also add time for waiting chamber temp in printing time

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I8054080d2e8821e421a6d03222b8b25365b5977f
2023-11-01 09:11:19 +08:00
xun.zhang 7a439c523f ENH: rename chamber_temperatures in placeholder
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id4d853d479cfb9b6c3fda177891f11a34f7d29e8
2023-11-01 09:11:19 +08:00
igiannakas 7b33a7e86b ENH: fix conner case of sandwich wall order
Updated sandwich mode code to cater for edge case where two sets of internal perimeters were causing the perimeters of another island to not be re-ordered correctly.

Github pull request: #2182

Change-Id: Ib58722db8cb76aa6b6474412c71993bb8e4dc007
2023-11-01 09:11:19 +08:00
xun.zhang 9bf251c54c ENH: add printer structure in code
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I57c24a0ea977b510932970817d67570ab3fe7bc4
(cherry picked from commit 409f03de471f65b9edf5c733b691e280c18c19cc)
2023-11-01 09:11:19 +08:00
igiannakas 4ac098df4d ENH: reorder wall seq for inner outer inner mode
Enhancement on wall ordering for inner outer inner mode

Github pull request: #2182

Change-Id: I0902ea0c728f7e37a1a43f9796997f33d37a9940
2023-11-01 09:11:19 +08:00
wenjie.guo c553844b05 FIX: sort m_extruder_option_keys lexicographically.
Github: #77
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I8832a3848231da8b1066688a2471acd6b6122c19
2023-11-01 09:11:19 +08:00
qing.zhang 7a7a9f4296 ENH: add top_area_threshold param
Jira: 4136

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ic8a3d05cea769ae92dd5f2f2fcd685d660075c95
2023-11-01 09:11:19 +08:00
wenjie.guo a980b78172 NEW: Z hop restriction
Z hop will only come into effect when it is between retract_lift_above and retract_lift_below.
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: If43aea7024018eb8f532c6af5d8000973f2edee3
2023-11-01 09:11:19 +08:00
PavelMikus d78bb9e1f4 FIX: short edge collapse algortihm
so that it does not decimate all triangles on very high detailed models
Relevant issue 8834 Access Error when slicing
Github: #2283

Change-Id: I047361c88c561962ef4d3cf67bc0126402c41941
2023-11-01 09:11:19 +08:00
wenjie.guo 5076a3008a NEW: insert Gcode between objects
Change-Id: Iec3535941390bfbd279a5677c352d92f36506d4c
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
(cherry picked from commit e0c5476e2e4c02055fb6ce7b4b4d927498c6ee90)
2023-11-01 09:11:19 +08:00
Arthur faeb95d59d ENH: smooth 6 times by 1 click of "smooth" button
In adaptive layer height, smoothing 1 time is not usable.
There'll be layer lines at the layer height change boundaries.

Change-Id: I84a8b69744db4936062d631864836f0a8cd99cf6
(cherry picked from commit ca77408f38c9a57bee4ab8ee4989024f7f105317)
2023-11-01 09:11:19 +08:00
Arthur 4e15942ba8 FIX: differnt_support_interface_filament was wrong
This bug will cause a gap between support base and interface in Snug mode.

Jira: STUDIO-4067

Change-Id: Ife4d1fc3652803e9d41bb49fddf126cb05798ae5
2023-11-01 09:11:19 +08:00
lane.wei b94dee2460 ENH: CLI: add a flag to allow minimum size save
JIRA: STUDIO-3752
Change-Id: I0277c34d108185d10130630a72811122f8ee9ae2
2023-11-01 09:11:19 +08:00
xun.zhang d724a3bd66 FIX: use extruder list to decide chamber temp
As title.Use the same way to decide exhaust fan.
Removes end print exhaust fan control.

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ib848b04361dc1214eabe2819a6d120d9e0646689
(cherry picked from commit 02ef3a05141710172b1ec2cc45c1e3f9908c82a3)
2023-11-01 09:11:19 +08:00
xun.zhang 977ae079c8 ENH: add support for chamber_temp and exhaust_fan
Support controlling chamebr temperature and exhaust fan for air filtration

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I31627ce4f8acce99e132b0436ab7dcd0bcebf81d
(cherry picked from commit 215878864e1410085ddf9735595e1b1cb00c1e47)
2023-11-01 09:11:19 +08:00
wenjie.guo 4121960292 FIX: allow changing ironing angle.
allow changing the relative angle between the top surface and the ironing.

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I85e8ff3d05d3a6d9408da011631e7d71a6d85178
2023-11-01 09:11:19 +08:00
qing.zhang 4fce50453c FIX: no soild ironing if top or bottom shell is 0
fix the ironing be apply to the preview layer of bridge

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I53cb4e6ff80176953c2927c1d9dc5eecc590764c
2023-11-01 09:11:19 +08:00
zhimin.zeng 13857dba34 FIX: modify the default position of wipe tower
Change-Id: I27eacb73a7e32d20416da785378d3ff0c31f5c23
2023-11-01 09:11:19 +08:00
wenjie.guo ba3638e70e NEW: allow changing the angle of ironing in the dep mode.
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I09348096fd19ee4e07ce3a04ae152f7ee5758767
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
2023-11-01 09:11:19 +08:00
Arthur edcdad162e FIX: tree support bottom interface layers were not correct
The bottom interface layers were not right when "independent support layer height" is enabled.
This commit ensures there are always 2 bottom interface layers and the gap
is not less than specified. However, the gap may be slightly larger.

Jira: STUDIO-3842, STUDIO-2138
Github: #2127

Change-Id: Ifd8fbc4c7bc6dd92f2534fdd0179458a9e93c79a
2023-11-01 09:11:19 +08:00
thewildmage c0a247994c NEW: Add Ellis' pattern method for pressure advance calibration
Add a new calibration pattern method for pressure advance calibration, which can better test the influence of k value on the corner. The changes of this patch are picked from OrcaSlicer by thewildmage, thanks to thewildmage for the great work!

github issue: https://github.com/bambulab/BambuStudio/issues/2222

Change-Id: Icc8fd4d52b20c1668bfa08716b48549dfada515b
(cherry picked from commit eb72d8b681bef270906406a2d10a36d4efbce900)
2023-11-01 09:11:19 +08:00
salt.wei cb38b71825 FIX: should consider plate offset in wipe tower
Updating position to gcode writer in wipe tower
miss plate offset.

This is handling for github issue #2256

github: github issue #2256

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I915591ee919d10bb5bd2c2dcd5f1e98fd4b66503
2023-11-01 09:11:19 +08:00
maosheng.wei 93cf701be5 FIX: [Jira:3864&3728 github:2227] translation issue
Change-Id: I375e72191b3af1cf389e65ff4b62ed4f77d8f76a
2023-11-01 09:11:19 +08:00
chunmao.guo dee1c04f28 FIX: load from gcode stream crash with null model pointer
Change-Id: I09a17dd5726d164a4e0bc1d5f213581832a17a5d
2023-11-01 09:11:19 +08:00
chunmao.guo a9e436e557 FIX: [STUDIO-3735] unload default user filament/process presets
Change-Id: I24e54823e91ea8f6cad9bfbdf69ee838e75f8190
2023-11-01 09:11:19 +08:00
salt.wei 22aca74e5b ENH: remove the single filament limitation of skipping object
We planed to skip uncessary filament changing when skip
object. However, this caused color mixing.

If we try to fix the color mixing issue, the flush gcode
should be generated by printer itself. This is not a short
time job.

So currently we never skip changing filament when skip
object. This will not save much time and flushing. But better
than none.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6046cd2765cf68058712b4256402acc0be771144
2023-11-01 09:11:19 +08:00
zhimin.zeng d5120f890e FIX: crash when use manual flow rate
fix the PA tower is effect

Change-Id: Idc00090c75023d62beca2a32529a6749081de9ef
2023-11-01 09:11:19 +08:00
Arthur fdbe35b619 ENH: add placeholder first_layer_center_no_wipe_tower
This placeholder can be used for smooth timelapse of i3 type printers.

Change-Id: I953a437a7733835d850812565ff5f31b83292912
2023-11-01 09:11:19 +08:00
Arthur e88550b206 FIX: unify cli and GUI auto-arrange
Make sure cli uses same params as GUI's auto-arrange.
Previously cli uses wrong skirt_distance.

Jira: BLPIOT-255
Change-Id: Iaccfb76acf7413ec614fff006feb770dcd6783cf
2023-11-01 09:11:19 +08:00
zhimin.zeng 473ebbdc18 FIX: Re-multicolor slice when change first_layer_print_sequence
Change-Id: If17708744a52c95aec406e2cd46a29ff4cf29872
(cherry picked from commit 892f508f194e49462a2c470ce8d0f3f6313a0c09)
2023-11-01 09:11:19 +08:00
zhimin.zeng 476ca19689 ENH: support custom the first layer print sequence
Change-Id: I0516948292933fe47d39fb3ae2f7e91473b45b3a
(cherry picked from commit 5bbdb28c86509d5f94b5b9c33a0f2e1b2749e94b)
2023-11-01 09:11:19 +08:00
Arthur 25f9cccf2a FIX: disordered support interfaces in tree support
Can't delete nodes with no children, otherwise the parent-child relations may be corrupted.

Jira: STUDIO-3737, MAK-1557

Change-Id: I1de39e182bac4a55a8739c00e59fdf7b9b5e4dfb
2023-11-01 09:11:19 +08:00
Scott Mudge 9fde7861c4 FIX: Bugfix for zero-width tree supports from @scottmudge (#1367)
fix bug with zero width tree supports throwing exception.

This a PR from @scottmudge commited to OrcaSlicer.

More than the original commit, we also unify the usage of line_width and
support_extrusion_width, making things simpler.

Change-Id: I0b7a4344cbda4fdf05dfd9f8965f598ad6844429
2023-11-01 09:11:19 +08:00
qing.zhang 536bdeda54 FIX: Revert overhang optimization
Revert overhang degrre split

This reverts commit 7d8c98117ae6b7c2c2d62176d1bf8cf51b28a79b.

Revert "ENH: arachne overhang efficiency optimization"

This reverts commit 7adcceda95fc52be4a37c3e74de1aa776a3c434a.

Change-Id: Ic33a2e8bb11e48b40388706a662267e05508fd25
2023-11-01 09:11:19 +08:00
qing.zhang 8ee88c81c2 ENH: fix arachne wall order
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0f3680ba73689c6fb673c070b0355a84fc25de26
2023-11-01 09:11:19 +08:00
Arthur ade248cc2f FIX: tree support's enforcers inside a hole were wrong
Previously holes of enforcer_polygons was taken as contours,
which caused enforcers inside a hole were too large.

Jira: STUDIO-3877
Change-Id: If38c34e2469b822012a2ed0b082783563fe99228
2023-11-01 09:11:19 +08:00
qing.zhang 307a888597 ENH: key name-only one wall on top surface
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ife706b02d51badddc7e6dcba446a4d049695a706
2023-11-01 09:11:19 +08:00
qing.zhang f66f4b5462 ENH: fix overhang degree split
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I81b946f2fab5e561f965df2ab9852c10c61f8480
2023-11-01 09:11:19 +08:00
qing.zhang 0d837e2587 ENH: top one wall for arachne
split to 3 mode
not apply
all top surface
topmost surface

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Id9bb1a6ded7414b2f093ac01e4ecb4b93057d022
2023-11-01 09:11:19 +08:00
qing.zhang 94b4194b11 ENH: arachne overhang efficiency optimization
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I9b0954e24867b5f4a29e0e5d24708cd977ec22aa
2023-11-01 09:11:19 +08:00
zhimin.zeng 639bf63af5 FIX: filament painting doesnt work properly #2078
STUDIO-3731

Change-Id: Ifc93baf194d5e81eb7e00facf85344bfc05878fc
2023-11-01 09:11:19 +08:00
zhou.xu c522ed8ec0 FIX: calculation error in overhang area
bug: There is a part of the overhang area in the model that cannot be applied

Change-Id: Ia1045225776ccb0e8730912aae1d4c7509f40c5b
(cherry picked from commit daa3e131564690e9e169313d147fd84537b898ca)
2023-11-01 09:11:19 +08:00
xun.zhang 7c2c057f19 ENH: restrict the input range of z-hop
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ieca161bc7a52d6554efca5c0474d2a2fafb2da3c
2023-11-01 09:11:19 +08:00
xun.zhang a02f700c5d ENH: add more info in header block
Add filament density and filament diameter in header block
Add max z height in header block

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I128f9bde4188882baed76340e3f9d752d8a9b645
2023-11-01 09:11:19 +08:00
Merikesh Dev b5a5e3ce9e Add ModelIO support on macOS 2023-09-07 14:15:05 +08:00
lane.wei 2dde3708d1 FIX: add protection to fix crash when mesh boolean
when the split has no effect
we should return directly

Change-Id: I81510c3edea96e101abfedf77023264e06d7d35c
2023-08-01 22:09:01 +08:00
lane.wei dbcfec8a32 ENH: mcut: disable debug related logic
found a crash in dump_mesh,
disable debug currently

Change-Id: I9f210ce074333e95233af08d3e782546107091dd
2023-08-01 22:09:01 +08:00
salt.wei d1ba5cf9a4 ENH: miss extruder_type in the list
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I3450b98b2ccf33a5b823729ada454dfd6ad475c1
2023-07-31 14:29:15 +08:00
xun.zhang 6ce4a6c5f2 ENH: modify chamber_temperature to array
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I8c1afc85ff91ebf4458871fecba5f2f1f1e32f1d
2023-07-31 14:29:15 +08:00
Vojtech Bubnik 153c9517ce FIX: fix the crash issue #1944 caused by wronog thread name in some
corner cases

this patch is cherry-picked from PrusaSlicer's 84722876012ca310e29b291e10fef9d18ae26cea
thanks to 'Vojtech Bubnik' for the fix

Implementing a test whether the current thread is the main (UI) thread
and using it on AppConfig::save() to assert if save is called
from a worker thread.
The old assert was using thread names, which did not always work
on Windows.
Fixes #7839 #9178 #9370 #9420
2023-07-31 14:29:15 +08:00
xun.zhang 793c657b46 ENH: remove nozzle_hrc in params page and profiles
use std::map to map nozzle_type to nozzle_hrc

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ie9d1db486808bd5164c7952caecaf4ac279f43d8
2023-07-31 14:29:15 +08:00
lane.wei 0c45cac1a8 ENH: CLI: refine some logic of repetions and load configs
1. when object skipped, it should not be duplicated
it is set to unprintable before arrange
and the plate needs to be considered a skipped plate also
2. skip the wipe tower if not multi-color after skip
3. load default configs if there are no configs loaded
4. refine the result.json to include key_values

Change-Id: I8c132cabcdd78756673fe900267a226a41ae1b4d
2023-07-31 14:29:15 +08:00
lane.wei 8c29a57be4 ENH: CLI: add logic of uptodate_settings
1. load the updated machine/process config from uptodate_settings
2. if don't have uptodate_settings, keep the logic as before, use from local

Change-Id: I3520469ab6094f03895b8e0e4e84c7549190f244
2023-07-31 14:29:15 +08:00
maosheng.wei cd8e7e80ba FIX: Calibration supplementary translation
Change-Id: Id4203f55e921dc5c1d1d462f7dcacd262d88c603
2023-07-31 14:29:15 +08:00
chunmao.guo d488363095 FIX: use metadata with related index for shared volume
Change-Id: If5ef2e9245a88666600eab0e5f6b92dc8ab3fb14
2023-07-31 14:29:15 +08:00
lane.wei 387f8838f2 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
2023-07-31 14:29:15 +08:00
lane.wei bb4f425027 ENH: add the error codes return logic
1. write a json to the outputdir
2. including message/error code/plate id

Change-Id: If2a13a89d34982a86102162c9c968cdf60702f19
2023-07-31 14:29:15 +08:00
wenjie.guo a321121acc FIX: the option to adjust the first layer flow
Change-Id: Icf0c2686cc78c26724438ddc80d1894ac50ec179
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
2023-07-31 14:29:15 +08:00
zhimin.zeng 90e1ed7335 FIX: cali status recover incorrect after save result
STUDIO-3602

Change-Id: I1a47e40ca4d571ab37f52b87109d809279d3145e
2023-07-31 14:29:15 +08:00
zhimin.zeng e010fad242 FIX: k value of ams control is not correct
modify the method for using printer type

Change-Id: Ica864c19f4ad3e58e4f478e078b55fc11485901a
2023-07-31 14:29:15 +08:00
zhimin.zeng f542b6321e FIX: cannot open saved 3mf with & in model name
STUDIO-3690

Change-Id: I44cbccf6692910f7cbf331a6cea4f05caa25c45a
2023-07-31 14:29:15 +08:00
Arthur 9d9673116d FIX: tree support didn't work with enforcer
Enforcers should also subtract the lower polygons to get overhang areas.

Jira: STUDIO-3692
Github: #2045
Change-Id: I70f4aaae13826efc624e9bc942d2d11e9b1df1a1
(cherry picked from commit fc3d9b24ac1eb14e259488c94fca3469f319b368)
2023-07-31 14:29:15 +08:00
Arthur 44fdfe8fff FIX: tree(manual) didn't support well
1. We have a logic to add supports at corners for tree(auto), now I extend
it to tree(manual) also.
2. Only show support_critical_regions_only option to tree(auto).

Github: #2008
Change-Id: I161444da93464fd2ef0e0f3b40a0c5852beba351
(cherry picked from commit af4efb4aadc2a4d16de3eea881c6610955985fff)
2023-07-31 14:29:15 +08:00
wintergua 7430700b8e FIX: the convexhull of first layer is wrong during making skrit
to avoid integer overflow during the polygon operations in make_brim(),
plateoffset is applied during gcode generation. This results in a wrong
first layer convexhull "m_first_layer_convex_hull" which is used in _make_skrit().
This patch fixs this issue.

JIRA: https://jira.bambooolab.com/browse/STUDIO-3719
Change-Id: Icfe21f4dbab05cc9e1c6f668791a62f954c2e0e5
(cherry picked from commit 6286b3e447b7ac7cbc061dca435091094783f74b)
2023-07-31 14:29:15 +08:00
qing.zhang 1223d6f900 FIX: pressure advance unrecogized
while the newer version of 3mf be load to older software
pressure_advance be unrecogized

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ie160759f58e573f8ad01a2941763016e9b070e9e
2023-07-13 10:35:05 +08:00
梨子 bc469bdcb6 NEW:Revert "add pause print message"
This reverts commit f24178896e2e9701165a3a5df8e711489beb34e5.

Reason for revert: pause

Change-Id: Ie55d14143a9e5ea9d593cb2ff0196688f3b0345e
2023-07-13 10:35:05 +08:00
salt.wei 989e4214c5 ENH: apply fan speed immediately after changing layer
What: As title. The original code is always apply
at the end of last object of last layer, whichi is before
layer change

Why: the fan spped will be skipped if the last object is
skipped. So we must move the layer time fan speed setting
after changing layer, where is common gcode block and does
not belong to any object.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I442f80e00778b524576210b451f81dd15e25e14c
2023-07-07 17:52:43 +08:00
maosheng.wei 8975562e8b FIX: [STUDIO-3529] Error prompt deduplication
Change-Id: Ic14d7938fd6f70c5280bc8c4c70360b5c82ac8af
2023-07-07 17:52:43 +08:00
zhimin.zeng e5e66cb3dd ENH: support recover after close Studio
fix flow_ratio not change according preset

Change-Id: I048d1183ffcfc2d4470725528aa62f12b32c6216
2023-07-07 17:52:43 +08:00
zhimin.zeng 2565a66b6d FIX: set uniform_scale false modify the scale ratio
STUDIO-3364

Change-Id: Idd5f5640cb7bb6eb5b5dbb2c829f6dce2e61fe3c
2023-07-07 17:52:43 +08:00
salt.wei 6fde6747c4 ENH: fix some assert in debug mode
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I2d5796269d512672a3c3be7d6ebdc41f6cc58da8
2023-07-07 17:52:43 +08:00
Arthur fcda0e5f2c FIX: mesh boolean may take forever with CGAL
Only use MCut to do boolean, with a little modification to allow input
mesh to have multiple components.

Jira: STUDIO-3167

Change-Id: I4f53010f76fbcacfe966c2ef48e465f97d6516fe
(cherry picked from commit 92d0eb11744820466ee2f67c02d4764e496b7e60)
2023-07-07 17:52:43 +08:00
chunmao.guo 1c4d0e9bc1 FIX: use prefer preset after reset project presets
Change-Id: Idadee17f28f345cccccf35ec2da2b0786799840d
2023-07-07 17:52:43 +08:00
chunmao.guo a4b3a5c000 FIX: [STUDIO-3571] not skip auxiliary for send gcode
Change-Id: I2dd1e36c571261c93ac899db5bbd3ad38fc40bc9
2023-07-07 17:52:43 +08:00
salt.wei bc0273d734 ENH: should apply instance shift in is_through_overhang
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I07ca04d459c3e98650c8e5a33f56dac20f99b9a2
2023-07-07 17:52:43 +08:00
lane.wei 8b42a8b7e9 ENH: refine the skip_object&&cached_object logic
when the cached object is skipped
we need to reslicing it;

also do overhang detect for all objects

Change-Id: Ic842fd5a441426983a760145aeff9285e398d430
2023-07-07 17:52:43 +08:00
salt.wei 5e36c36f70 ENH: don't need to skip object in cali mode
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I3c71f442e8d1e94786912ddf6a4367597073cbac
2023-07-07 17:52:43 +08:00
Stone Li 2368d929fe NEW: rearch calibration
Change-Id: I20ee304eba1a63e08d0a36abdf06ebe6a6e4451f
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-07-07 17:52:43 +08:00
lane.wei ced9e43be6 FIX: fix a typo in GCodeProcessor
Change-Id: I56b9eaedc3cb062d17facf7352eb469524db5b60
(cherry picked from commit 1bb3b64cfc1aabad9ece3e5d5c0f55a9cb3367c5)
2023-07-07 17:52:43 +08:00
Arthur 04bfe7e405 ENH: ease removal of tree supports
Previously tree supports are harder to remove than normal
supports. We learn from normal supports and improve the gap between
object and supports.

Jira: STUDIO-3530

Change-Id: I229a7b869b334bdf4c5aba96c9450213b83457f2
2023-07-07 17:52:43 +08:00
salt.wei 73059c79af ENH: move filament compatibility checking to public
As title. This function need to be used in calibration
page.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ia4228cbd195d87f433b59bc14129bd4acdd9df68
2023-07-07 17:52:43 +08:00
chunmao.guo dac0a90605 FIX: xml_escape thumbnail paths
Change-Id: I781b529162b70945156c13796806db507042ad7c
2023-07-07 17:52:43 +08:00
lane.wei c06e47069f FIX: config: fix a typo of skip_objects
Change-Id: I986da5d677820dfb73fbab5bff43ee26147e431a
2023-07-07 17:52:43 +08:00
chunmao.guo d63316fe7e FIX: [STUDIO-3130] skip parse object in slice_info.xml
Change-Id: Iae50320f06404ba1bfddcda351f8b642bc35debb
2023-07-07 17:52:43 +08:00
salt.wei 7910e681e4 ENH: remove duplicate height pair in layer height profiles
This is fix for jira-3493

Remove duplicated height pairs when add height range

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: If74c1f8af1c911d709b9582a15ea8852630c1a67
2023-07-07 17:52:43 +08:00
lane.wei 7c76cf99b9 ENH: CLI: add option repetitions for future use
Change-Id: I97bdc04b542f9725a047348450c2c677d8807427
(cherry picked from commit d5a20f689cade6cc5b28bbec70931c6d122ef6f4)
2023-07-07 17:52:43 +08:00
Arthur ecfffca12d FIX: raft contact distance should not trigger warning
Jira: STUDIO-3344
Change-Id: I1d0e7431cad468acaf4830caf002a47c6a33be41
(cherry picked from commit f2a926da614443fdf8631f4412f70fa741a8bf11)
2023-07-07 17:52:43 +08:00
salt.wei 145d7a4f8e ENH: add protection for filament_id in height range
See comment in code...

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I5c68a86e1d740a54d4ca6c647fd923575600b1ca
2023-07-07 17:52:43 +08:00
lane.wei d385384907 ENH: skip_objects: optimize the label_id logic in ModelInstance
Change-Id: Id20fe9b084426036d6cf4f54859655579bec7197
(cherry picked from commit ebb5343eef6aea9e54d11f3d6b98cf11ff941aa5)
2023-07-07 17:52:43 +08:00
zhimin.zeng 0962b23904 FIX: sync the modify from master
Change-Id: I8d1ab3803d0c0813923192569354f93e6022a1e7
2023-07-07 17:52:43 +08:00
chunmao.guo 1be8ea44e5 FIX: [STUDIO-3406] load/save thumbnail relationships
Change-Id: I515fd2339ec16ff39b8fcfbc278a0d998b8b53f4
2023-07-07 17:52:43 +08:00
salt.wei a29507dfa3 ENH: avoid invalid gcode when id is duplicated
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ia710f4423d0c95ff24e4c73d4a0aee19543feed4
2023-07-07 17:52:43 +08:00
lane.wei ef06dfc931 ENH: object_skip: use identify_id for cli when skipping object
Change-Id: Ibbe3262b4817f82b7ac824ba6d4b3efd7f0ed886
2023-07-07 17:52:43 +08:00
xun.zhang 7b0b24e64e ENH: add PLA-AERO,add default key in common json
Change-Id: Ia6551f50e0f921a196a3a94659b367ca1ec4424f
2023-07-07 17:52:43 +08:00
liz.li 257e2e0bbb ENH: calibration: filaments compatibility
Change-Id: Ibdbf25905b7f0fff2371247437624ec4645b35ee
2023-07-07 17:52:43 +08:00
Arthur 0cad88309c FIX: fitst layer bbox was wrong for multiple plates
brim bounding box is now shifted w.r.t. plate origin, need to modify the
no-brim shift the same way.

Change-Id: Iefa7287e2848aadbfc4a468bca394ecec48a1e7c
2023-07-07 17:52:43 +08:00
salt.wei c5d70a846e ENH: add setting of extruder type
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ic126466f6b579dd6a55a1ba16a63c015d538c750
2023-07-07 17:52:43 +08:00
Arthur 40b8d9b87f ENH: improve mesh boolean
1. Don't use mcut on splitable volumes
2. If MCut fails, try again with CGAL.

Change-Id: I55d352b166633db9e4548b5c9e6913cf931f5f8f
(cherry picked from commit c1bde5358524d2291db6efa584ff072308ed9d20)
2023-07-07 17:52:43 +08:00
qing.zhang 1368501508 ENH: add Generic HIPS
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0fd861db6137c39f59630ae443661ddeb7a7b060
2023-07-07 17:29:08 +08:00
liz.li 9b2e13a0fa FIX: fix some issues about CalibrationWizard
1. fix STUDIO-3238、STUDIO-3233、STUDIO-3138、STUDIO-3210
Change-Id: Id7586a8a7a9e4ea04c2616099759c3527acdb1de

Change-Id: Ibb943e587edc464e2982bfee0d02a072dcf9ffd3
2023-07-07 17:29:08 +08:00
zhimin.zeng e6a03b48ad ENH: get result for pa and flow ratio cali
Change-Id: I78c967abcdaf8c75fe6b31f1697377b72ad10e06
(cherry picked from commit fb6cd5a7c71fe6e5c4e9fed71f0c61f3a7a0c8e4)
2023-07-07 17:29:08 +08:00
chunmao.guo 03054a3b80 FIX: [STUDIO-3313] fix preset selection on load_user_presets
Change-Id: I46849869d2b84211b1b7802cf886bb0d83d10649
2023-07-07 17:29:08 +08:00
salt.wei 0d1b8b18ed FIX: should not throw in noexcept function
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6753615903d218698fb5cabafcba46e97b8fdf18
2023-07-07 17:29:08 +08:00
salt.wei 766abf92fa ENH: add back use_relative_e for third party printer
Useless for BambuPrinter. But used by third party printer

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ib6a63e78816b25696c25952508f76c3d9221e363
2023-07-07 17:29:08 +08:00
Arthur 501e73913c FIX: empty layer replacement may crash
When there are multiple empty layers needs to be replaced, error_msg is
assigned multiple times simutaneously by tbb, which causes problem.

Jira: STUDIO-3320
Change-Id: I52a48c9fe284d15aeb8e4e9e5d1db7e0c3321ad6
(cherry picked from commit fba54c063637a1bab4d835e2e5f8558b2affa4e6)
2023-07-07 17:29:08 +08:00
salt.wei 2fe7629388 ENH: normalize comment from OrcaSlicer
Mark code from OrcaSlicer with same comment tag for follow easily

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: If4db502a1b0e6d0648c73f2f383b6d1cc8e1aa01
2023-07-07 17:29:08 +08:00
salt.wei 53ea77b67b ENH: show filament vendor in develop mode
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ice9c3a86ce22c4c6dde784afb2e7c23e929ac7d2
2023-07-07 17:29:08 +08:00
Stone Li 14cb2449c6 FIX: fix plate name encoding issue
Change-Id: Ia89b2c5bbb4519ed938ae23ff124719cfe6203de
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-07-07 17:29:08 +08:00
liz.li e2934516ed NEW: support restore calibration status of printer
1.store each printer's calibration status to appconfig.
2.add retraction calibration
3.add choose fine calibration directly at flowrate calibration
4.add start pages for every calibration
5.add history window for pa calibration

Change-Id: I117fd46e689e0573e70e8579f5a52ba62d99f3d6
2023-07-07 17:29:08 +08:00
qing.zhang 546322d1cc ENH: add solid infill pattern
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I8878c8d5f0024c9cbde6040f317d0783dfc5eccd
2023-07-07 17:29:08 +08:00
Arthur 4e5f4ee366 FIX: FillBed crashes when accessing unset print config option
1. When the option is not set, print.full_print_config() is empty, so we
can't access opt_bool("scan_first_layer") or opt_bool("enable_support").
Should use wxGetApp().preset_bundle->full_config() instead.
Jira: STUDIO-3264
2. Allow different object having different brim_width to encode support's brim width.
In this way the arranging logic is simpler and more objects can be arranged in a plate.

Change-Id: Ic7178652147b0519d50b2eb9ceb214b4ef4c0251
(cherry picked from commit 0f163d59b40009cd29b8b1e32f730258ad0786dc)
2023-07-07 17:29:08 +08:00
Arthur 9ad9ba213a FIX: fill in bed may shift objects outside bed
Do not do final align for filling in bed.

Jira: STUDIO-3265
Change-Id: I2ce2ebed575ba05b1d78ec89923f8e91c4de6648
(cherry picked from commit 581aa4fd0ff1c6f64026d7b934d4bd8a79b803ae)
2023-07-07 17:29:08 +08:00
salt.wei e567afdcb5 ENH: support exclude objects for klipper printer
Thanks OrcaSlicer.

This is just function for klipper printer.
NEVER used for BBL printer.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I910abceb67f4dcb4260f74f5dd1b4fb614812670
2023-07-07 17:29:08 +08:00
Stone Li 5a7e3cebcb ENH: load bed type from app config
Change-Id: I60a7ccff55e30bedb2cdd2e90224c93c04dc0622
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-07-07 17:29:08 +08:00
lane.wei b9afbd92c3 ENH: CLI: add logic to recompute flush volume matrix for mmu
Change-Id: Id9ce0cc054492762da31d2bd9dea53c73421d972
2023-07-07 17:29:08 +08:00
qing.zhang ec756bc2df ENH: add acceleration para
thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ie82934e2fb5cdb4ec77246e2d5cd6be36fdc7d5a
2023-07-07 17:29:08 +08:00
qing.zhang 739d8c9b28 ENH: filter small gap
thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I9bffe629419455b2a7b4494aa595b711619939da
2023-07-07 17:29:08 +08:00
qing.zhang 346321379a ENH: add decel para
thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I95a1240c8d6ce7365055e840e526f279a55939e4
2023-07-07 17:29:08 +08:00
qing.zhang aa62c6e870 ENH: add jerk parameter
thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I6aadbffebc069167a460c991aa8fb711b754ff37
2023-07-07 17:29:08 +08:00
salt.wei 208f7c32da ENH: fix another assert in wall generator
Thanks PrusaSlicer.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I9173f91629fa6c90d8bc3756d7d1fdbfd8605eab
2023-07-07 17:29:08 +08:00
qing.zhang 112712e966 ENH: add top & bottom infill flow ratio
thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: If4b2d203d8568a7c640425702b0a77ccea3b596b
2023-07-07 17:29:08 +08:00
salt.wei 68c990a1de ENH: fix one assert in wall generater
Thanks PrusaSlicer

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I39456246c0fa1bde68fdd86690e4ef015a349898
2023-07-07 17:29:08 +08:00
salt.wei 568ad6f851 ENH: avoid overflow of 2D boolean in brim
This is fix for jira-1774, jira-2260, jira-2997.
This is also fix for github issue 1821.

Very old issue...And all caused by same reason.

Instance shift are too large for multi-plate,
which causes overflow in 2D boolean and generates
overlapped brim line.

Only apply local instance shift without plate shift.
And apply the plate offset at last step.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I23f7d1ec75c76dea1b4f5332f16ea8a3db14bddc
2023-07-07 17:29:08 +08:00
lane.wei 0fcc235e14 FIX: fix the crash issue when change setting after .gcode.3mf loaded
Change-Id: I47ae6c6b14f94858ff9789ef3ed927930b611203
(cherry picked from commit ad548cdc7491fd432603c80ea2fcf151115efd10)
2023-07-07 17:29:08 +08:00
salt.wei 026eaf6bc4 ENH: manual setting for PA for 3-rd party printer only
Should never use these two setting for bambuPrinter.
Thanks original code from OrcaSlicer.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ifda4086b71fd2ef170b044c7632d15fe2ef490fd
2023-07-07 17:29:08 +08:00
qing.zhang 4f4516357f ENH: add seam parameters and increase wall loops
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Id5c6cd6e97493f8912ce1857aed56eecace66cee
2023-07-07 17:29:08 +08:00
salt.wei 8905121af5 ENH: sync voron profile from orca
Thanks OrcaSlicer.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I02f6b712cc07907ae7cae4284fb75ddef053dfea
2023-07-07 17:29:08 +08:00
Stone Li efd65561a2 NEW: add Device view for third-party printers
cherry-picked from SoftFever

Change-Id: I36b2fa0227886e4fac494c8b83e12f4fc0b04e17
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-07-07 17:29:08 +08:00
zhimin.zeng 5f04066ac0 FIX: first layer slice color is not correct
STUDIO-3187

Change-Id: Ic3d3fa6746a339a58494634b576538fcd34d6f80
2023-07-07 17:29:08 +08:00
zhimin.zeng 11fb7fb89f ENH: add new calibration
pa calibration for 3rd party printer and retraction calibration

Change-Id: Ifeb12807cdce366c9d265a0490b320224dfb23fe
(cherry picked from commit 732adceeef43c9c957468ab490f0e3ee20f3173b)
2023-07-07 17:29:08 +08:00
Stone Li 2910014887 NEW: render cali lines for X1 series printer
Change-Id: I0edbe9cac3be837702e0b03d66766291b012b4b8
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-07-07 17:29:08 +08:00
chunmao.guo 4893cebaa5 FIX: [STUDIO-3196] save object name in slice_info
Change-Id: Id3d784c0e0989dfa37f0c36d0110e4d58e4766ca
2023-07-07 17:29:08 +08:00
lane.wei c7775ace16 ENH: skip_objects: add the skipped_objects into sliced_info
Change-Id: I2a04aa00503a04cfe3e9d680ceabdb4947142d34
(cherry picked from commit ca548d69daa0bc2970efc080fcf1537e6babb278)
2023-07-07 17:29:08 +08:00
salt.wei 28d2227c7b ENH: support skiping object when export gcode
Enable label object when does not print with multi
filament and object number is smaller than 65

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Id670c6a5258f266076bc0a52c50ab5a28386f242
(cherry picked from commit 40248347908788ce6303ed255826011127d8eaa3)
2023-07-07 17:29:08 +08:00
lane.wei 49f8d9e697 ENH: skip_object: add label_object_enabled flag in sliced_info
Change-Id: I7e62fd931d123b328c38da27de9625971938ac4a
2023-07-07 17:29:08 +08:00
chunmao.guo bb459f306d FIX: add object setting to gcode 3mf
Change-Id: Ib90a696a17035cd3194faa00a0204c9562249b83
2023-07-07 17:29:08 +08:00
Arthur c7ed4e7e14 ENH: revert boolean tool to mcut
Change-Id: I1aca763869e107a996519cb74e025043407005f2
(cherry picked from commit f7865828cf4b7b3ab8987bf0fc3d45efad2f08fe)
2023-07-07 17:29:08 +08:00
qing.zhang 0207b7915e ENH: fix hole compensation fail with modifier
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ifa71772a1ded8fcb9ae2e4de6723c1a41b3cfe6f
2023-07-07 17:29:08 +08:00
zhimin.zeng 2d3f1c7d92 FIX: Adjust step file import precision
STUDIO-3092

Change-Id: I0a96b255f3e387bd2c9dc0b6b3a3c6131d617cc3
2023-07-07 17:29:08 +08:00
zhimin.zeng 2cbcf39604 FIX: .3mf corrupted when using "&" in text
github-1903

Change-Id: I074d2e798232e4521f8f63aa32c6060a41805664
2023-07-07 17:29:08 +08:00
wintergua d132ad2d9d ENH: improving the efficiency of “groupingVolumesForBrim”
tbb parallelization is used to improved the efficiency of for_each_volume and for_each_polygon loop

JIRA ID: STUDIO-2866

Change-Id: Id5b3a536e3162b148417cbee803bcede3b62a651
(cherry picked from commit 15a6f7ef2f575eaa4b4694ad357d881b39b82f5b)
2023-07-07 17:29:08 +08:00
xun.zhang 6e34ecd749 ENH:update PETG/PTEG-CF fan_threshold
Change-Id: Iffdffd936f249dd763ab7ebad0b7622d1eb504af
2023-07-07 17:29:08 +08:00
lane.wei 6968eb5d82 ENH: support export multiple model objects as stl under CLI
Change-Id: Ib6cb68624d111971dc763901f3a8414673d9a546
2023-07-07 17:29:08 +08:00
chunmao.guo e7af4eeccc FIX: [STUDIO-2971] always load gcode config from gcode stream
Change-Id: Ie01456c3ecdc74f80f4aed728fda45782441e37b
2023-07-07 17:29:08 +08:00
manch1n 0a5aa3ebb2 FIX: remove default extruder 1 for objects
STUDIO-3058

Change-Id: If52a41067b55011af9561c70f962c2ce9cfd7b96
(cherry picked from commit dae01e11439ac05c040dabc2208732971a0daac0)
2023-07-07 17:29:08 +08:00
Arthur 0ce835dcd4 ENH: add option "remove_small_overhang"
Let the user choose remove or not.

Github issue: #1810
Jira: STUDIO-2992

Change-Id: I9c5e087d171d16d8d7318b36efe825a6cbc29c33
2023-07-07 17:29:08 +08:00
qing.zhang 5ae0adde16 ENH: reorder print area to reduce travel time
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I8fd5c505a42ae850d91c061d4df08257fb03c8c8
2023-07-07 17:29:08 +08:00
chunmao.guo 10838680dd FIX: handle empty AMS filament type
Change-Id: I76b931a28fef4aaf18c2ca0a472fcbefee4663b8
2023-07-07 17:29:08 +08:00
zhimin.zeng dde886aae8 FIX: Scale coordinate display axis is wrong after the rotation
STUDIO-2658

Change-Id: Ie3659ac29bdbc6f908fbd6fc3463d4498b1a1bbb
2023-07-07 17:29:08 +08:00
Arthur 2e0a8dcf30 FIX: reduce normal node in buildplate_only mode
If support_on_buildplate_only is enabled, and a node will fall into the object,
this node should not be a normal node.

Jira: STUDIO-3047
Change-Id: I65dc6d69d28729732907111c3b34b4d32edff806
(cherry picked from commit d04dc35d45c171e20899cb391d3b192fa123c10e)
2023-07-07 17:29:08 +08:00
manch1n bea2be1e18 FIX: get correct extruders of object has multicolor volumes
STUDIO-3049

Change-Id: If63a86e12fab9f3bb012d5b2833f7f89caf08c78
(cherry picked from commit fa529c282ed3ecd8fe889b8d9d863af44e0bd19a)
2023-07-07 17:25:51 +08:00
chunmao.guo 1a36608d59 FIX: [STUDIO-3037] use plate type labels from configdef
Change-Id: Iecf81fe5a8cbe35ffa431432ff938a4b81ddea5c
2023-07-07 17:25:51 +08:00
salt.wei 3a1e112d49 ENH: separate the simplifying of infill and wall
This can avoid to simplify wall twice when
the only invalid step is infill.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ie5a9ccc10d5331c29c716aece08cdb195352cfe3
2023-07-07 17:25:51 +08:00
tao wang 2d8ddca1d6 ENH:synchronize different codes
Change-Id: I011b39ee85eecbb9da99d1c4fe1f2875267acc32
2023-07-07 17:25:51 +08:00
yifan.wu f97261bca9 ENH: optimize support top intface fill direction
Optimize support top interface fill direction for bridge.
The direction is set orthogonal to the biggest bridges's infill
direction.
Currently, it only works when thick bridge is off.

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I7bd894ae6f5ae24bc597c609e27a16b6d45a9797
2023-07-07 17:25:51 +08:00
Arthur 3c1f7f9e16 ENH: improve small overhang detection
Small overhang diameter threshold is reduced,
and use bounding box size instead of area for final decision.

Github: issue 1681
Change-Id: Iabbb49dfc47345bb609214749104c808608c4d65
2023-07-07 17:25:51 +08:00
liz.li d53bd3394a ENH:calibration
1.adjust interaction of calibration
    add select my device
    add select multi-amstray
    modify ams selector
2.add some x1c calibration command

Change-Id: I403446cc0cd3ae5e1dec5d2dc97920ff334522da
2023-07-07 17:25:51 +08:00
zhimin.zeng 032bf107b8 FIX: fix the conflict
Change-Id: Id5f2bf11344e9d42302420d167daa3af1c3c1845
2023-07-07 17:25:51 +08:00
liz.li 1f54aaf22b NEW: add calibration
Change-Id: I03e5489a67042e7f76f5a42260a289d540b5a63a
(cherry picked from commit cbac2c639db830eb779b1979c8d6b4eb3decb7e6)
2023-07-07 17:25:51 +08:00
zhimin.zeng b5878b1838 FIX: wipe tower is not generated with different filament layer range
Change-Id: Ica876c3a94a3edb23eb723a1f3c37e2d10549af9
2023-07-07 17:25:51 +08:00
chunmao.guo f9f937b769 FIX: [STUDIO-2999] locale used by parallel load
Change-Id: I24553b7426b4e5a60e05d20943a42fe8a614bb34
2023-07-07 17:25:51 +08:00
Jianjia e1cfd11100 ENH: increase grid infill's strength
Previously grid infill may be cut, so the strength on one direction is too weak. Now we switch the order at neighboring layers, so the strength of both directions are good enough.

Change-Id: I0ba768eeee34ce430e43ea57d8f06c209d469d39
2023-07-07 17:25:51 +08:00
Arthur 12d0a51362 FIX: do not merge overhangs when buildplate_only is on
Jira: STUDIO-3024
Change-Id: I87f73a556945d1b1640c515336ca108f65b88bdf
(cherry picked from commit 1c09513324bb965647bbb157be1cacaf9371ce07)
2023-07-07 17:25:51 +08:00
salt.wei 3ea602091e ENH: add back infill anchor for special case
These two settings is necessary for some
specific user case.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I9d70679932ac90c34296393d0e8bb8aebd8ebe48
2023-07-07 17:25:51 +08:00
zhimin.zeng 1a9b82cf1a FIX: the assemble view is not correct after cutting or splitting
STUDIO-2934

Change-Id: Ia77b8704d65fad09103a42f1c56191928eff8cb0
2023-07-07 17:25:51 +08:00
manch1n ec7306e3cb FIX: false alarms due to wrong print z of gcode paths
The print z was wrong previously when there is a wipe tower, or there
is an object with floating parts.

Jira: STUDIO-2719
udesk: https://bblcs.s5.udesk.cn/entry/ticket/show/2258732

Change-Id: Ifa070aeb548d692549cf88df0d405ecdf0160c80
(cherry picked from commit be3097d8044ce9e0079ebf7070b15c7aad7aff0e)
2023-07-07 17:25:51 +08:00
zhou.xu b849a82725 FIX:Remove all spaces and special symbols in the plate name
Remove all spaces and special symbols like \ / : * ? " < > |  in the plate name,allow xml special symbols such as & '

Change-Id: I2b391d13be709af0e47f1573c0e225e63591fd23
(cherry picked from commit 135c97e9916c852a8625d9d9bf0a4dda051b6e2b)
2023-07-07 17:25:51 +08:00
Arthur 7c5e96a43a NEW: add boolean in export stl
Change-Id: Ibeab33f27ad7a2531bb256edd0e3f853cf8def7c
(cherry picked from commit 6cfb4371a1b9053b54569d91a9c29af97a753c0e)
2023-07-07 17:25:51 +08:00
lane.wei 716f4a9b5c FIX: fix a bbox compute error issue when using multiple height ranges
Change-Id: I8a5f044a9817b946eb1321f98b96fe5d1d4bcdf1
(cherry picked from commit 045ee2537cac64160d53b2aa2ce2b96ed63a6d86)
2023-07-07 17:25:51 +08:00
qing.zhang 1d0476fa44 ENH: optimize the efficiency of auto lift
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I9c1679cc80ae23ff066df6e2fe98b5530a9d2288
2023-07-07 17:25:51 +08:00
maosheng.wei eb3a97f55b ENH: [STUDIO-2450] Update the bed type to be consistent with the gcode
Change-Id: Ic69face644bc193e7125535697905c35ba210058
2023-07-07 17:25:51 +08:00
tao wang 7af252fa99 NEW:support for sending print job from SD card view
Change-Id: I8366345ae4323c1b568bfd267d036e2474ff969a
2023-07-07 17:25:51 +08:00