Commit Graph

248 Commits

Author SHA1 Message Date
qing.zhang 67039a6f4d ENH: check wethether filaments print on first layer
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I1cc7cd9e9bbbcdf72112c0949196c09ef414cf91
2024-11-12 15:35:32 +08:00
zhimin.zeng 8efb9fbb6e FIX: G1 empty command
jira: none
Change-Id: I399aa2d8bb820d5a6547025b66bd0dc3eeaa37c3
2024-10-15 15:50:26 +08:00
zhimin.zeng 4db196b11f ENH: modify the start pos of wall for wipe tower
and modify the overlap of wall and infill for wipe tower
jira:none

Change-Id: I0d1355c718e2bd1efea6d898f793f5869476ab12
2024-10-15 15:50:26 +08:00
xun.zhang e3c8496a62 FIX: add to incorrect layer when adding pause
1. Caused by floating-point precision.

github:#1937,#4250

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: If7a5dc71a898c1208289b6b89eafef9d4126f17c
2024-10-15 15:50:26 +08:00
xun.zhang 1e214c08a3 ENH: readd M220 command
1.Backup and restore extrusion speed when tool change

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0c00391f0169dde69dab0d5120d03238aafa0862
(cherry picked from commit 2d96a9078f41764cbd5b7f5be1285025fc69f8fa)
2024-10-15 15:50:26 +08:00
qing.zhang 872978d61b ENH: Revert z smoothing function
Jira: none

Change-Id: I067033c3beb4b29b8da11ff0c9f12b126bcf61dc
2024-10-15 15:50:26 +08:00
qing.zhang b52a9de509 ENH: smooth z dir speed and layer time
Jira: none

generate continuitious outer wall speed in z dir
generate continuitious layer time in z dir

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0ade543d2f9ee40f5cd65c533eb261d85e5eaa34
2024-10-15 15:50:26 +08:00
xun.zhang 9267bd65aa FIX: wrong prepare time with chamber temp
1.Caused by missing break of switch case

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ie667eda4069f3e2487ed87081580e2540ae4da7b
2024-10-15 15:50:26 +08:00
qing.zhang 3d1f1ef858 FIX: limit the speed of wipetower skirt
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I9d4cbb8e6a83fe654ceb99c27fb2ba294fbe55d1
2024-10-15 15:50:26 +08:00
qing.zhang 773e79d9f4 FIX: error toppest layer height on scarf seam
Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Iac47613c8e161059c420f04f2c34febfb630cd45
2024-10-15 15:50:26 +08:00
lane.wei 8c155da07c Revert "ENH: support spiral lift with timelapse gcode"
This reverts commit f701afb34de3487e8d3560dd1e2051a21790e6ae.

found regressions

JIRA: https://www.reddit.com/r/BambuLabA1/comments/1fkuw4v/bambu_studio_v01090750_issues_with_multi_colour/
https://www.reddit.com/r/BambuLab/comments/1fkxabt/bumping_noise_on_a1_at_color_change_since_bambu/
2024-09-20 15:48:34 +08:00
SIMPLE MARK c7cb968e6d ENH:Add filament usage stats to GCode files
1.Add accurate filament usage stats to gcode after processing gcode

github:#3090

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I8eb20c0cf1b9c70f540d4549e2d65b8c79908952
2024-09-18 21:27:27 +08:00
ziehmon ce669e421d ENH: support spiral lift with timelapse gcode
The existing implementation did only read the new Z position from the injected timelapse_gcode and flagged the position as unsafe because of this.

This change reads X, Y and Z pos from the timelapgse_gcode and will keep the position state correct to enable safety checks required for using spiral Z hop.

Because of this, spiral Z hop can be used everyhwere now. The same pattern is also applied for layer_change/toolhead gcode injection.

The set_current_position_clear method is unused but will be kept in implementation for future scenarios.
2024-09-09 19:31:19 +08:00
qing.zhang 1fa62efb66 FIX: error layer height on gui while open scarf seam
Github: 4132

Thanks orca, this fix merged from orca

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ic2361299532b3cc4667e7744f23aedd4414d8a08
2024-06-11 18:17:08 +08:00
xun.zhang 4cf4e640ce FIX: unassigned initial extruder ignored
jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I97dbfac705c890d1c2b16c2b685f31d05e82a292
(cherry picked from commit a5a2909c795c6c99ff7d6c6bbe5741491a2b63e0)
2024-06-11 18:17:08 +08:00
Momin Al-Ghosien 7b52c24d60 Removed unused method 2024-05-06 14:38:59 +08:00
Momin Al-Ghosien 59c3bc2cbe Remove accidentally added whitespace 2024-05-06 14:38:59 +08:00
Momin Al-Ghosien da29408504 Updated to fix the handling of the capacity change, and removed the code I previously added to reserve upfront since it is not really needed 2024-05-06 14:38:59 +08:00
Momin Al-Ghosien 306b09b4f5 Fix use after free bug in LinesBucketQueue::emplace_back_bucket
I found a use after free bug in LinesBucketQueue::emplace_back_bucket. This was found by enabling address sanitizer.
The LinesBucketQueue class has two related members:
std::vector<LinesBucket> line_buckets;
std::priority_queue<LinesBucket *, std::vector<LinesBucket *>, LinesBucketPtrComp> line_bucket_ptr_queue;
line_bucket_ptr_queue holds pointers into line_buckets. However, since items are inserted into line_buckets one at a time, existing pointers that were stored inside line_bucket_ptr_queue become invalid. Specifically:
void LinesBucketQueue::emplace_back_bucket(ExtrusionLayers &&els, const void *objPtr, Point offset)
{
    auto oldSize = line_buckets.capacity();
    line_buckets.emplace_back(std::move(els), objPtr, offset); <--- Causes a reallocation, making previous pointers invalid
    line_bucket_ptr_queue.push(&line_buckets.back()); <-- priority queue compares against old, now invalid pointers
    ...

The proposed fix is to calculate the required number of entries in ConflictChecker::find_inter_of_lines_in_diff_objs, and then calling line_buckets.reserve(count). This ensures that sufficient buffer is allocated up front and the pointers are stable as items are added.
2024-05-06 14:38:59 +08:00
xun.zhang 3006b163d0 FIX: always have 0th filament in ams mapping
1. Only set the filament id in map when flush length is not 0

jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I6e0aeaf010f6e6dcbdc3bca5c0034aa60750bb67
2024-04-23 20:07:49 +08:00
xun.zhang cf146f4fed FIX: can't use support filament in gcode.3mf
1. Add total_filament_volumes, directly access it to get used filaments

github:#3865

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I4fae4f1947b4ebd16e394e0f3cf5fb0e9f979717
2024-04-23 20:07:49 +08:00
xun.zhang 7ee6e62ec4 FIX: unable to map if filament not used in model
1.Fix filament can not map if it's not used in model body

jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ibd2685ffd198b2e17dbf44289d0144b5b7c25788
2024-04-10 20:03:44 +08:00
qing.zhang b40cf28a83 FIX: seam and unretarct pos error on smooth vase
Jira: none

casused by invalid path of smooth vase mode

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ib597e8c05760886aae2c42e42e8d46e82b844578
2024-04-10 20:03:44 +08:00
andrewboktor 449cb0b27c ENH: Full re-write of spiral vase
Github: 2744

* Practically full re-write of spiral vase
- Adds transition out to prevent sharp edge at the top of spiral vase.
- Adds XY interpolation
- Adds option to turn XY interpolation on/off

* - Increasing E to 5 decimal digits (I observed uneven flow with less than that)
- Excluding all travel moves (I saw a bug where somehow we ended up with travel moves within the print so excluding all travel moves)

* - max_xy_smoothing is now configurable, default is 200% of nozzle_diameter
- fixed no-op travel moves in the middle of spiral that now show up as defects when Smooth Spiral is enabled!

* - Avoiding namespace pollution
- Fixing dist_XY == 0 bug

---------

Co-authored-by: Andrew Boktor <aboktor@microsoft.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
Change-Id: I4e982b6192f730037ff497389454313af3905e82
2024-04-10 20:03:44 +08:00
tao wang 30ee6b0d31 ENH: remove long retraction warning
jira:NEW

Signed-off-by: tao wang <tao.wang@bambulab.com>
Change-Id: If60236b3282991a2d94df7d125427cff86899536
2024-04-08 21:16:06 +08:00
xun.zhang 3564daaef1 FIX: invalid support weight per extruder
jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0e4b857c9c758ab7c54ef13aee1bf596f975640b
2024-04-08 19:50:03 +08:00
XunZhangBambu 74702b2c6c ENH: seperate support weight from model
jira:NEW

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: I86bb34941269bf1aa29436a94ebbdff675497e85
2024-04-08 19:50:03 +08:00
xun.zhang 5b834000f6 ENH: refine retraction before cut
1. Add filament retraction before cut control

jira:NEW

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ifcb087c9791c0461b793ef811b21ebd4c007d880
2024-04-08 19:50:03 +08:00
xun.zhang 5e03cb3024 FIX: wrong role cache in wipe tower
1. Add wipe tower role cache in GCodeProcessor result
2. Add wiki link for prime tower

jira:NEW

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

github: PR#3100

Signed-off-by: XunZhangBambu <xun.zhang@bambulab.com>
Change-Id: Ie328039872e50e699dc5e5082fa99f68ac5f5fd1
2024-03-25 15:29:19 +08:00
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
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
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 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 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
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
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
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
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
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
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
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
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
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 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
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
zhimin.zeng 668106cc5d ENH: support traditional timelapse for i3 structure
Jira: 3935
Change-Id: I38a270f7d9060ea1b271c69fd0d427205817e705
2023-11-01 09:33:21 +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
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
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
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
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
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
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
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
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
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 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
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
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
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
manch1n 352f4222b1 ENH: increase conflict threshold to 1mm for both support lines
Little overlap of support lines from two objects are allowed.

Change-Id: I738874ee71fc9787abbef764dbad762c76bc5731
(cherry picked from commit a5f7a53dc818d598523149d675fd0310f5d22f86)
2023-07-07 17:25:51 +08:00
manch1n dcb1f68b89 FIX: check conflict when only have mutilcolor obj and wipetower
STUDIO-2789

Change-Id: Ic2cdd76416fc979b13f9c2fc9a29a5312b832caa
(cherry picked from commit 47319cafa726983f66577209b2c58fd7ead304ee)
2023-07-07 17:25:51 +08:00
manch1n 87eb0f3665 ENH: show the layer and height of conflict position
Change-Id: If80e81b5556f5afc3228a00edc2593bd8cfe63e4
(cherry picked from commit 895e0f2ecf8e259cfdb7c27081b767bfbaa3ffb6)
2023-04-17 15:39:02 +08:00
manch1n b5b7264e99 ENH: add wipe tower into conflict check
Change-Id: I9684ec17ccbfdea39deae6e5089b74ce3124d57b
(cherry picked from commit f6ee82b4ecf8bf9de91d0043b514cdabb7284b7e)
2023-04-17 15:39:02 +08:00
liz.li 62af2b9608 FIX: vector capacity reset(STUDIO-2239)
Change-Id: Ie40e8c6d3a42b6a40f4f73d6906acdc6e26d0b41
2023-04-17 15:39:02 +08:00
zhimin.zeng ad80943c69 FIX: delete unnecessary travel of wipe tower
STUDIO-2203

Change-Id: Ic55030a09f66a789245f80096e8f3ffea73a904f
2023-04-17 15:39:02 +08:00
manch1n d72b4c1bfe FIX: Disable print button when gcode has conflict
Also fix a crash bug due to setStarted and setDone.

Change-Id: Ib9b069fe4b7e5d1fc359f48e44b4032dd8249428
(cherry picked from commit 9ef190ed3ecd66d12617ad96e927ff34251395a2)
2023-04-17 15:39:02 +08:00
miaoxin d43c7d5c92 NEW: add gcode conflict checker
1. add gcode conflict checker
2. add a new command line option: --no_check. When it's provided, gcode
   conflict check is skipped.

Change-Id: I6feafca8c5fa6c3c5eae1f0e541ce59d2f03dedf
(cherry picked from commit 5a39afb64e826a960d9673dcada89d02d62b3911)
2023-04-17 15:39:02 +08:00
salt.wei 0b126dbed6 ENH: fix the floating layer issue
Fix for floating layer under multi-color
printing while z_hop is zero.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I8cc96bd18020cac8424fe4c3e62fb87da118b826
2023-04-17 15:39:02 +08:00
zhimin.zeng dda90b1810 ENH: get start_gcode filament
Change-Id: Ia511f758d5c59ddc38c79f251e8c95511de4a235
2023-04-17 15:39:02 +08:00
zhimin.zeng 81daebb5a5 FIX: the first layer is not printed in the correct order
Change-Id: Ia8ad49417e6b59fa10b763cb0e207f5f79b9a4d2
2023-04-17 15:39:02 +08:00
salt.wei 61b271f379 ENH: fix for STUDIO-881
Thanks prusa

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I2e1c1088d29dd5401016ca41d3ed6dec87e0acd1
2023-04-17 15:39:02 +08:00
salt.wei 31f8034422 ENH: force to use . as decimal point
"std::cout << float number" is unsafe which
may use , as decimal point when switch language.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I8a379117168eab0111dc93987b1d6130a741ade6
2023-04-17 15:39:02 +08:00
salt.wei 1278cbf461 ENH: remove tbb simplify in gcode export
Useless after importing AABB tree.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Iaec9bef4a2a6bc4d097c6fd75720cb69d9cf314f
2023-04-17 15:39:02 +08:00
salt.wei 4c4b274408 ENH: speed gcode export up again
thanks prusa

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ifbe5e2ea55b16a7fe281b54ca16c37695c15f5b1
2023-04-17 15:39:02 +08:00
qing.zhang 6a391de290 FIX: speed 0 on macOS 13.2 STUDIO-2265
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ia8d92f6a0f7d84c1216d9403793e5fa7671ee8de
2023-02-24 17:44:15 +08:00
qing.zhang 350adb6176 FIX: revert "FIX: fix adjust of cooling time"
This reverts commit 9e026a289542545d5f63cd72fb9416be1521ecc2.

This Revert "ENH: STUDIO-2221 adjust cooling time for each layer"

This reverts commit eb1fa5975eb7dc3ff832539e9bec5a04515ff2f9.

Change-Id: Iba8d0a1492b81922aad0d64df81c74cff5eabbb3
2023-02-22 20:09:17 +08:00
liz.li e7ea07944f ENH: custom gcode info should be owned by every plate
Change-Id: I5e5b000b7d04354d3c3cc311d089cb591a37501e
2023-02-22 20:09:17 +08:00
qing.zhang 0b0a1a3d48 FIX: fix adjust of cooling time
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I5eae0ed7e53fddb18c99f510373ba5a687fd2c8e
2023-02-22 20:09:17 +08:00
qing.zhang 4b86b978d1 ENH: STUDIO-2221 adjust cooling time for each layer
sub filament change time from layer time to adjust
layer speed

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I2f1c41a36946765b74ecad58ce102abe98e00dac
2023-02-22 20:09:17 +08:00
liz.li b3c4447191 FIX: spiral vase mode layer number
Change-Id: Iac96f790e4030d2eac5666517d37919926cd85c3
2023-02-22 20:09:17 +08:00
zhimin.zeng 217234c8d3 FIX: Support Filament is being "Flush into objects' infill"
When using "Flush into objects' infill" with support filament, it also get's flushed into the object's infill which shouldn't be happening.

Change-Id: I0f1cb3d5ee3cf5489ccab957989c6c24336f8845
(cherry picked from commit f83e63feb3ad5a14b0f4304e2e6fb1c5828270ec)
2023-02-02 12:14:41 +08:00
salt.wei 431eabd464 ENH: use gcode processer to get precise layer number
Using layer z to calculate total layer number is not
precision, because for some models with sharp top
layer, the top layer may be empty.

Check the final layer change in final gcode file.
This must be same with total layer number.

Jira: Studio-2123

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I5d001a8bb9548c3fb5f67fda966051ac3bb16502
2023-02-01 16:24:44 +08:00
salt.wei 170a24a43f ENH: show travel time in gcode viewer
Seperate travel time from extrusion role time and
show it seperately.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Icf0aaf63c4d4ed7d1407037e5ae051d61938f973
2023-02-01 16:24:44 +08:00
四季奶青七分甜 b7b9029548 fix: Revert "ENH: avoid overhang area when set the seam position"
This reverts commit 1e95803df3733021e80241ecf7b88976708f0cf7.

Reason for revert: some model test not good, need to update curve function

Change-Id: I6afd6115d21198f60453d4f507905b6684a65cff
2023-02-01 16:24:44 +08:00
salt.wei ba064d44a1 fix: revert "ENH: aligned the z-seam"
This reverts commit 2d0805d4aabbc4e8f25aa93c8f01870c256a0b17.
2023-01-10 19:08:26 +08:00
salt.wei b13928b615 fix: revert "FIX: fix the out range of array of seam algining"
This reverts commit f100c10fa8aa0460d3ff11723c6a2504b6b69bba.

Change-Id: Ice36f6f41d5a50a7244d8f09960876d9539802d8
2023-01-10 19:08:26 +08:00
qing.zhang d42d6bec87 FIX: fix the out range of array of seam algining
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I655e7a0a5cdac6c05ddd8a6c7f38e1f97a7d0f96
2023-01-10 19:08:26 +08:00
qing.zhang ad6257ca84 ENH: aligned the z-seam
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I60e1a046fb236d588a5e83b602fabd39580228fb
2023-01-10 19:08:26 +08:00
qing.zhang 3a6f033794 ENH: avoid overhang area when set the seam position
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I58eb8c091b68b8c64f44d21db88d2f9155e42e42
2023-01-10 19:08:26 +08:00
SoftFever 357fa2bfe1 refactor and improve layer time display 2023-01-10 19:08:26 +08:00
SoftFever f42ae3239e Add Layer Time/Layer time(Log).
Main logic is ported from SuperSlicer

Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2023-01-10 19:08:26 +08:00
Arthur 646b259972 ENH: merge tree support layers to support layers
Will greately reduce repeated codes.

Change-Id: I506a97a907b5b393fe41e13ae53e2f7c9247c4c5
2023-01-10 19:08:26 +08:00
qing.zhang c4ec0ddae9 ENH: put the seam on invisible line of modifier
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ib16de93b26e96902ce2e0d844b78d0cc680638a4
2023-01-10 19:08:26 +08:00
Zhaofeng Li 9b1429144b GCodeProcessor: Add missing mutex include 2022-12-16 22:51:07 -05:00
lane.wei 13a1dc03c1 ENH: sync the different codes
especially for the translation files

Change-Id: I940578ff6e22b0939d42eeed2209bfeddb0eb191
2022-12-15 04:38:15 -05:00
qing.zhang 41c310bf25 FIX: fix the disappear of seam on multi plate
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I58f1f0fa12497dc55c3b2a83abcee883dbbb7d9d
2022-12-15 04:38:15 -05:00
lane.wei 45dd07cfe4 FIX: fix serveral issues in multi-plate slicing
1. fix the thumbnail white issue in some random case
2. fix the thumbnail not update issue under preview panel
3. fix the previous panel's toolpath not clear issue while switch panel
   under preview
4. fix the toolpath not clear issue while switch from 3d to preview in
   some corner case

Change-Id: I158eba35e3b5d8a1e77f19ee9f86801e6a6dbd86
2022-12-15 04:38:15 -05:00
salt.wei bcedd7e557 ENH: fix gcode viewer line error issue
Should not insert new line in post process
which changes the the final line id in gcode
file

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ib8b837cf313a1308260db88bf5390fefe9708cc8
2022-12-15 04:38:15 -05:00
liz.li eb723d1979 ENH:remove start G-code layer in preview-slider
Change-Id: I89d66453078bb2df1f9a0161f6cfde032a9dd90d
2022-12-15 04:38:15 -05:00
salt.wei f49f1385b5 ENH: fix error acceleration in Gcode processor
When travel in x-y-z move, the acceleration should
be limited by trivector rather than one axis.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: If8e5d394cf5d8772d324b9c851c047d9235d9b6b
2022-12-15 04:38:15 -05:00
salt.wei f3c7953bdc ENH: fix the error time in gcode viewer
As title

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I9322b119b68055baea0e6f63d179a0addf02307e
2022-12-15 04:33:48 -05:00
zhimin.zeng af48c3db38 FIX: add notes
Change-Id: I230637e6c8b3cfe9e49655cf67f338f77a57732e
2022-12-15 04:33:48 -05:00
zhimin.zeng 2f12ad7bf2 ENH: enable thick bridge for wipe tower
Change-Id: I96dae7753995af1862fe4ad33a00fa56cfbb7d3c
(cherry picked from commit 5f98ff50613e3358de10fa1b6d4429ce71e526c2)
2022-12-15 04:33:48 -05:00
zhimin.zeng da4be5a802 FIX: small wipe tower width result in infinite loop
Change-Id: I1e25dba1728b9427a0cab2c2629c340bf2a4566a
(cherry picked from commit b1fc2f5857e05a177c00134178ddd39882c2a6ab)
2022-12-15 04:33:48 -05:00
Stone Li bde96c1542 FIX: several small fixs
Change-Id: Iee10daeedae924fa829148841556e31eb5e9d225
Signed-off-by: Stone Li <stone.li@bambulab.com>
2022-12-15 04:33:48 -05:00
zhimin.zeng 82325973f8 FIX: prime tower start position is incorrect
when support material is used in first tool change

Change-Id: If06459b8404fd599b42187859f476efded57deba
(cherry picked from commit 71f9ed69a3eff4cf3139d04a76176f798a1e1e0d)
2022-12-15 04:33:48 -05:00
Arthur 7bdba58b98 ENH: save bed type in 3mf for first layer scan
Change-Id: Id3d83a58f0cca4899e3247b5854500af79cf1b34
(cherry picked from commit d192ae2d8c7d404048e980cfaa0846be48c5fbad)
2022-12-15 04:33:48 -05:00
salt.wei c70e8d486f ENH: update jerk strategy according to printer
Jerk handling has been changed in printer.
Changed in slicer as well.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ic3aef43a534a7f0b85b734e747dc3ca883faaa46
2022-12-15 04:33:48 -05:00
Stone Li cd1210b0ca ENH: save error code to slice info
Change-Id: Ic70ef81775c23d160f40ff29f02cc9e1f9d336d6
Signed-off-by: Stone Li <stone.li@bambulab.com>
2022-12-15 04:33:48 -05:00
qing.zhang d0def61ca0 ENH: fix the warning msg of nozzle hrc check
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0cb6d10e002b3053624a970ecca12801576d8250
2022-12-15 04:33:48 -05:00
Stone Li e4198ad63a NEW: add a new slicing warning
Change-Id: I62a31e505318441699141a5c86355c8d41b890f2
2022-12-15 04:33:48 -05:00
salt.wei bd577fafb2 ENH: don't apply new fan speed until filament change finished
This patch can make sure that the cooling fan will not
be enabled during change fimanet.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I9f480b99116d62fe7522233b69b5bca209663821
2022-12-15 04:33:48 -05:00
qing.zhang 6ca5df9118 NEW: add nozzle_hrc and filament required hrc
hrc determine which filament could be printed by the nozzle
if the filament required hrc smaller than the nozzle hrc
the fillament could be printed

either of it be zero means use other printers
or user want to print it anyway

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ic32dfaed4f9c80774a670c362de612254f3a5ed0
2022-12-15 04:33:48 -05:00
zhimin.zeng 96707fc4b4 FIX: tool change time is too long
Change-Id: Iaecc3dc832c6a20a2acc180a79923e45b97f18f3
(cherry picked from commit a3528545af4176bdba3240120ebde32abf8a9d8d)
(cherry picked from commit cbdab12b2e218427e51f39d6860b00a844caef7a)
2022-11-07 19:59:23 +08:00
qing.zhang eae71a5184 ENH: remove the dulicate warning msg of temp
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I978f2de34e277c6747adc783cb91c341f159a67e
2022-11-01 20:52:23 +08:00
yifan.wu 76b40c9636 FIX: fix an flush_into_object bug for copied objects
Copied objects share extrusion paths but they should be treated
seperately.
Thanks hisptoot for the fix.

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I24d3050df7d284e92fc50a0213023a43ee8c529c
2022-10-20 19:34:37 +08:00
yifan.wu 65f57882b9 FIX: fix an exception happened in flush option in debug mode
Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I02847ac516f560863c126ee8bf7bfc9018c2d69e
2022-10-20 19:34:37 +08:00
salt.wei 99974c7f59 ENH: add warning info when bed temperature is too high
Add bed temperature checker in gcode processer. And
save slice warning into GcodeProcessorResult.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Iee96e4ab165a3171a5a1e165450bfc360401647f
2022-10-20 19:34:37 +08:00
Stone Li ee62ffcc7d NEW: add confirm dialog after check conditions
confirm to check printer model and slice warnings

Change-Id: I07a272fda1a5e2ebc0f4e106815fe07da5aaa4df
Signed-off-by: Stone Li <stone.li@bambulab.com>
2022-10-20 19:34:37 +08:00
salt.wei 6c8015ca28 ENH: avoid crossing wall when travel
Provide related two options to avoid crossing wall
when travel.

This is handling for github issue #106

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I127adbb70f33c3954a08f3087e64c4e75212c7f0
2022-10-20 19:34:37 +08:00
salt.wei 4ef50375cb ENH: resume addition cooling fan after filament change
During filament changing, additional cooling fan may
be closed to reduce strings. Force to resume after
changing filament.

This logic is same with part cooling fan.
So no side effect.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I207c8692dbe5b0450ed0a3d11c4c9b70eda0e28c
2022-10-20 19:34:37 +08:00
zhimin.zeng a2d65c0c6a FIX: do not use interface support filament for default support
Change-Id: Ieb9da1df74b17e81a0fdb4d0b7e9bead54d8bb96
(cherry picked from commit b54caf82b1bc6d2097188c75c57e2f4e6b7792fc)
2022-10-20 19:34:37 +08:00
zhimin.zeng d7a8219a8f FIX: modify reorder extruders time
Change-Id: Ib72faf039dee6a08770617c4c2f341079d7e02e9
(cherry picked from commit 5e9d479bd7d7ef54bcafe7181dcdd8c03adaae51)
2022-10-09 10:37:45 +08:00
zhimin.zeng cb569fdb55 FIX: fix the extrude speed
Change-Id: I11d91c3bc422664d5a851966297a6b874fc1815a
2022-09-29 11:16:43 +08:00
zhimin.zeng b468b0da0e FIX: wipe tower lose step in the printing process
Change-Id: I17b72dd2fb7332a39859a5c3727b34d14ff827d8
(cherry picked from commit dbdd71f0b89e3d4d188e4937cdb1db1510b5f208)
2022-09-29 11:16:43 +08:00
zhimin.zeng 9f74ea5763 FIX: wipe tower does not extruder fill in smooth mode timelapse
Change-Id: Ia6957cfe41ed3624baa4c12b6df90462fc436475
(cherry picked from commit 39ecccc94bea2a43a74ac852f121c5dbc739dc67)
2022-09-29 11:16:43 +08:00
yifan.wu 1f38d12862 FIX: fix a prime tower issue in timelapse smooth mode
Fix the issue that the first 2 layers of prime tower are not generated
when timelapse is set to smooth mode. This issue only happens in single
filament printing.

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
2022-09-13 19:42:32 +08:00
zhimin.zeng 05625a5e43 ENH: add traditional timelapse without wipe tower
Change-Id: I77792fb1a7af2ee95242c6f2501371dc0745287f
(cherry picked from commit f6d434cc8b6c8d11d16bbabf9600c2f2b63868db)
2022-09-08 21:49:36 +08:00
salt.wei 9e2f227aef ENH: fix wrong extruder offset when loading from gcode
All extruder offset should be extruder_offset[0] when
it is single extruder multi material.

Add handling when load config from gcode.

This is fix for github issue #213

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ia881b2bfbbdffa98e3c3db7b35201dc86b520b29
2022-09-08 21:49:36 +08:00
liz.li 664672b742 FIX:Gcodeviewer:arc type render bug on first layer
Change-Id: Id047e9c6ef39fa95af800bc1b218c14bc6efb7ab
2022-09-08 21:49:36 +08:00
liz.li 65cbccb219 NEW:add custom-gcode before first layer
Change-Id: I168e3038cb7d6850a5d6c568f348fed8000a915a
2022-09-08 21:49:36 +08:00
qing.zhang 53be2ee554 FIX: fix the topmost iron issue
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I79a034f188aaa1ef4528b944c725008f926b7b1f
2022-09-08 21:49:36 +08:00
zhimin.zeng 612204b443 FIX: STUDIO-787 & STUDIO-786 lion face model problem
1. memory explosion when enable timelapse.
2. Models with only one color become multicolor after slicing.

Change-Id: Iab3ace70c08d03ab612158d52ff67eef8d5bc718
2022-09-08 21:49:36 +08:00
arthur 1e0301dbde FIX: fix slicing error of more than 1 empty first layers
Jira: STUDIO-656
Change-Id: I582e432ac14b823656780147ec585ae7a7499517
2022-09-02 12:52:18 +08:00
salt.wei 5bea8a76fc ENH: cherry pick some fix about seam from PrusaSlicer
Synced from PrusaSlicer. Thanks

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I043088d9795f5352d4e0b5060402b70897fd7592
2022-09-02 12:52:18 +08:00
salt.wei d73142c2f9 ENH: new seam strategy from prusa2.5
As title. Thanks @Prusa

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I2fa177e27ac53211952ea9b6c62e98182b8f05ce
2022-09-02 12:52:18 +08:00
qing.zhang cc9463c017 FIX: fix the error location of G2 cmd in GCode
Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I51b728916570f94167af4c535b86a45b1df22c56
2022-08-26 09:25:59 +08:00
zhimin.zeng f745c5fea2 ENH: Optimize and design the time-lapse wiper tower
Multiplex existing wipe tower and revert old time-lapse wipe tower code

Change-Id: Ia1cba9808647ea900f691b2c5d5887077be12d89
(cherry picked from commit 61f41df572d11b7cc738c34f2624fd123cd9a6df)
2022-08-26 09:25:59 +08:00
salt.wei 40531c8ad9 ENH: fix crash when add G2_G3 in start gcode
Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I7d7133122b0d7e478fd2b0fa8849be09cb0c8353
(cherry picked from commit 2095960596e85ef970016701afd201c9bd36b262)
2022-08-26 09:25:59 +08:00
lane.wei e9e4d75877 Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos
2. add the bambu networking plugin install logic
3. auto compute the wipe volume when filament change
4. add the logic of wiping into support
5. refine the GUI layout and icons, improve the gui apperance in lots of
   small places
6. serveral improve to support
7. support AMS auto-mapping
8. disable lots of unstable features: such as params table, media file download, HMS
9. fix serveral kinds of bugs
10. update the document of building
11. ...
2022-07-22 20:35:34 +08:00
lane.wei 1555904bef Add the full source of BambuStudio
using version 1.0.10
2022-07-15 23:42:08 +08:00