Commit Graph

403 Commits

Author SHA1 Message Date
Noisyfox
85da536fe7 Make sure to move to prime tower before moving down (#8140)
Make sure to move to prime tower before moving down (SoftFever/OrcaSlicer#8120)
2025-01-22 20:52:09 +08:00
Noisyfox
4a4049012e Fix issue that is_infill_first doesn't work correctly on regions (#8126)
Fix issue that `is_infill_first` doesn't work correctly on regions (SoftFever/OrcaSlicer#8111)
2025-01-22 10:04:03 +08:00
Noisyfox
88cd3388b9 Fix per-object overhang slow down (#7976)
* Make sure the `m_extrusion_quality_estimator.set_current_object()` is called after regional config has been applied (SoftFever/OrcaSlicer#7946)

* Init `m_extrusion_quality_estimator` based on region config

* Revert "Make sure the `m_extrusion_quality_estimator.set_current_object()` is called after regional config has been applied (SoftFever/OrcaSlicer#7946)"

This reverts commit d13d4a47b78b6f80cdc4bff935ea8c3c52ff556b.

* Call `m_extrusion_quality_estimator.set_current_object` regardless, because that doesn't hurt

* Add a comment
2025-01-22 10:00:27 +08:00
f0x52
5df5cc1549 [feature] Add Bambu Cool Plate SuperTack (#7670)
* ENH: add supertrack plate

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I89017c9933597ee035aa20ba3852db6f629f5e20
(cherry picked from commit 78572cbff864e5e78255f2e0eb6e40237bc0bab9)

* NEW:add SuperTack svg

jira: none
Change-Id: Id6153f76f8634d1f00485991b75cbe526fb64adc
(cherry picked from commit 6404f06e79d38ffa8f7f296b10af2af1c2a3974d)

---------

Co-authored-by: zhou.xu <zhou.xu@bambulab.com>
2024-12-14 14:16:24 +08:00
discip
4f4d42be9b don't create HEADER_BLOCK_START if using BTT_TFT thumbnails (#7488)
* don't create HEADER_BLOCK_START if using BTT_TFT thumbnails

* Update GCode.cpp
2024-11-30 21:43:02 +08:00
Vovodroid
792e84c115 Retract on top layer option. (#6188)
Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-11-23 23:23:04 +08:00
SoftFever
6063588417 Add back m_nominal_z to store main print_z as GcodeWriter::m_pos will be changed after parsing get_last_z_from_gcode 2024-10-06 23:39:22 +08:00
SoftFever
19e822e13a fixed #6755 2024-10-06 20:36:00 +08:00
SoftFever
afec95bb8e Fix wrong z when zhop is diabled. 2024-10-06 19:16:15 +08:00
SoftFever
c4cacb7dd8 wip 2024-10-06 10:49:58 +08:00
SoftFever
70658dadd2 Fix an issue that wrong z value was used if a new layer is started with wipe tower extrusions. 2024-10-01 23:28:24 +08:00
SoftFever
24106e39e7 Add support for textured cool plate (#6860)
support textured cool plate
2024-09-22 16:48:49 +08:00
Tom
f4a31dc8b7 Revert "Tsmith35 per BS PR4631 (#6709)" (#6845)
* Revert "Tsmith35 per BS PR4631 (#6709)"

This reverts commit c8216accfd.
2024-09-20 21:55:20 +08:00
Tom
1a3dc3c378 Tsmith35 per BS PR4631 (#6709)
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.

Co-authored-by: Simon ziehmon@users.noreply.github.com
2024-09-14 23:52:04 +08:00
Noisyfox
3838c62146 Fix issue that "total filament used [g]" is missing from gcode (#6728)
* Fix issue that "total filament used [g]" is missing from gcode
2024-09-11 22:17:32 +08:00
vovodroid
1824ed2a36 Rename skirt types 2024-09-07 12:02:39 +03:00
SoftFever
91f55f6870 Merge branch 'main' into skirt-object-fix-pr 2024-09-07 10:57:59 +08:00
Ioannis Giannakas
a6050b845f Bug fix: Avoid crossing walls feature removes some retraction wipes (#6518)
* Bug fix: Avoid crossing walls feature removes some retraction wipes

* Merge remote-tracking branch 'upstream/main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening

* Merge branch 'main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening

* Merge branch 'main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening
2024-08-27 23:26:43 +08:00
vovodroid
8df8f6390a Object skirt 2024-08-26 13:48:51 +03:00
Vovodroid
3acd0d7a01 Fix crash when both Flow compensator and Verbose Gcode are enabled. (#6428)
* Fix crash when both Flow compensator and Verbose Gcode are enabled.
2024-08-25 12:39:15 +08:00
vovodroid
5f04072d58 Configure skirt start point 2024-08-24 15:37:46 +03:00
Vovodroid
904354f908 Remove unused parameter from place_seam method (#6421) 2024-08-18 16:32:56 +08:00
SoftFever
ab3d04312b Revert "Fix Compile Warnings (#5963)"
This reverts commit b83e16dbdd.

Found regressions like auto orientation didn't work anymore after this change, revert it
2024-08-12 00:00:20 +08:00
SoftFever
b010d7286e write correct extruder_colour to gcode
fixes #6288
2024-08-02 21:40:03 +08:00
Ioannis Giannakas
ecfd1909b4 Improve overhang slowdown granularity & line segmentation handling (#5996)
* Increase granularity of extrusion move splitting for small line segments ending in an overhang

* Parameter tweak

* Increase granularity of estimation for curled perimeters

* Adjust parameters following experimentation with overhang prints

* Updated overhang segmentation logic

* Cleanup code comments
2024-08-01 22:38:08 +08:00
SoftFever
adb4274e89 Merge branch 'main' into feature/support-fliament-cutter-explore-proper-flush-lenght 2024-07-29 23:21:48 +08:00
SoftFever
5d5c33f8c0 Merge branch 'main' into feature/multitool 2024-07-29 22:51:13 +08:00
Ocraftyone
dab6fa4db2 Fix Compile Warnings (#5963)
* Fix calls to depreciated wxPen constructor

* Fix use of wxTimerEvent

* Fix unrecognized character escape sequence

* Fix signed/unsigned mismatch

At least as much as possible without significantly altering parts of the application

* Clean unreferenced variables

* fix mistyped namespace selector

* Update deprecated calls

* Fix preprocessor statement

* Remove empty switch statements

* Change int vector used as bool to bool vector

* Remove empty control statements and related unused code

* Change multi character constant to string constant

* Fix discarded return value

json::parse was being called on the object, rather than statically like it should be. Also, the value was not being captured.

* Rename ICON_SIZE def used by MultiMachine

By having the definition in the header, it causes issues when other files define ICON_SIZE. By renaming it to MM_ICON_SIZE, this lessens the issue. It would probably be ideal to have the definitions in the respective .cpp that use them, but it would make it less convenient to update the values if needed in the future.

* Remove unused includes

* Fix linux/macOS compilation

* Hide unused-function errors on non-Windows systems

* Disable signed/unsigned comparison mismatch error

* Remove/Disable more unused variables

Still TODO: check double for loop in Print.cpp

* Remove unused variable that was missed

* Remove unused variables in libraries in the src folder

* Apply temporary fix for subobject linkage error

* Remove/Disable last set of unused variables reported by GCC

* remove redundant for loop

* fix misspelled ifdef check

* Update message on dialog

* Fix hard-coded platform specific modifier keys

* Remove duplicate for loop

* Disable -Wmisleading-indentation warning

* disable -Wswitch warning

* Remove unused local typedefs

* Fix -Wunused-value

* Fix pragma error on Windows from subobject linkage fix

* Fix -Waddress

* Fix null conversions (-Wconversion-null)

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-07-29 21:00:26 +08:00
Vovodroid
c1cdb57e9f Reverse draft shield direction on even layers to reduce thermal stress. (#5789)
* Reverse draft shield direction on even layers to reduce thermal stress and warping.

* Use reverse() to make code clear.
2024-07-28 23:26:34 +08:00
Ioannis Giannakas
080d06858d Enhancement: Adaptive Pressure advance (#5609)
* Adaptive Pressure advance options setup

* Dynamic PA - PCHIP interpolator code and tests

* Integrate dynamic PA with slicing code - emit new PA values per speed change

* Link adaptive PA to role change instead of speed change

* Adaptive PA - Alpha 2

Reduce the frequency of requested PA changes by introducing a "state" variable.
Implement user toggle for adapting PA for external walls for overhangs

* Hide adaptive PA for overhangs

* Convert Adaptive PA to use volumetric flow model and start preparing for converting to Gcode post processor

* Converted Dynamic PA to a post processing filter. Reverted changes in GCode cpp and created tagging mechanism to allow filter to apply PA changes.

* Removed adaptive PA for overhangs

* Foundations for two dimensional adaptive PA based on acceleration and volumetric flow speed

* Minor code cleanup and updating of tooltips

* Renaming files for better clarity and generate classes documentation

* Update src/libslic3r/PrintConfig.cpp

Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>

* Update src/libslic3r/PrintConfig.cpp

Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>

* Update src/libslic3r/PrintConfig.cpp

Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>

* Introduce average mm3_mm over the length of a multipath for adaptive PA

* Updates for multipath handling part 2

* Introduce average mm3_mm over the length of a multipath for adaptive PA

* Trigger PA evaluation more frequently to catch edge cases where speed changes across islands of the same feature type.

* Updates for multipath handling part 2

* Adaptive PA: Implement average flow estimation on loops

* Code formatting

* Fix adaptive PA not adapting for small disconnected external wall line segments.

* Updated to take max print speed of upcoming feature to calculate new PA value.

This is to resolve issue of incorrect PA value used when starting a new feature at an overhang.

* Code clean up

* Performance tuning

* Further performance tuning by reducing use of regex commands in the nested loops and fix bug preventing gcode line output

* Further performance tuning and tweaks to stop searching for max speed after the first travel move.

* Reduce debug information

* Updated debug info

* Fix an issue on seams on specific models when wipe before external perimeter was enabled. Also cleanup documentation and add new to-do's

* Prepare for adaptive PA for overhangs, fix wipe bug & clean up code and comments

* Initial commit for adapting PA when extruding fully overhanging perimeters

* Ignore wipe command when identifying current print speed

* Option to evaluate adaptive PA on overhang regions in preparation for Klipper experimental option testing

* Update to issue PA changes for varying flow conditions within the same feature

* Fix bug where adaptive PA was enabled erroneously for role changes and ignoring user's preference.

* Refactored some code

* More refactoring

* Some bug fixes and enabled comments only when verbose g-code is enabled

* Introduced dedicated PA option for bridges

* Code refactoring to optimise initialisation of PA processor (making it faster). Fix a bug where PA was not always set after a toolchange. Improve general error handling and robustness.

* Updates to adaptive PA tooltips

* Bridging PA check with Epsilon instead of 0.

* Adaptive PA: addressing comments

---------

Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>
2024-07-28 22:52:08 +08:00
Vovodroid
5739f96068 Use one loop for draft shield (#5786) 2024-07-27 12:27:58 +08:00
SoftFever
92d6664db2 Always calculate wipe volume and hence provide correct flush_length to custom change filament g-code, so that MMU devices with cutter and purge bin (e.g. ERCF_v2 with a filament cutter or Filametrix can take advantage of it) 2024-07-24 23:41:08 +08:00
SoftFever
2f4b05844b add "temperature" variable support 2024-07-24 19:58:34 +08:00
SoftFever
1ef97913d8 hide/disable options accordingly 2024-07-23 00:43:12 +08:00
SoftFever
1929537fb0 Fix misc bugs 2024-07-23 00:12:54 +08:00
SoftFever
e612a44112 force restore Z 2024-07-21 23:29:15 +08:00
enricoturri1966
bda3a8e9c5 preheat work - part 1 2024-07-21 10:29:42 +08:00
Vojtech Bubnik
83bd8b0fa0 Fixed crash if toolchange G-code modifies final position,
because the extruder was not set yet.
2024-07-15 21:47:10 +08:00
SoftFever
58f7af3356 support Prusa XL 2024-07-13 23:29:16 +08:00
SoftFever
004d0595d9 Fix ooze prevention bug 2024-07-12 23:03:07 +08:00
SoftFever
ff6ca4aa07 ooze prevention update: sync with PrusaSlicer 2024-07-10 21:40:11 +08:00
SoftFever
7c176f0917 support has_single_extruder_multi_material_priming 2024-07-10 21:40:10 +08:00
SoftFever
f5a710e758 tool changer support - init work 2024-07-10 21:40:09 +08:00
Christos Karampeazis-Papadakis
b4a8dca260 Disable small area flow compensation on first layer (Fixes #4617) (#5838)
Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-07-01 18:13:50 +08:00
Vovodroid
4abcb858cc Add travel_slope option (#5873)
* Add travel_slope option

* Merge branch 'main' into travel-slope-pr
2024-06-29 17:33:22 +08:00
SoftFever
6b95a7fb00 Fix small area flow comp regression and some other small tweaks (#5844)
* Fix regression, always create SmallAreaInfillFlowCompensator model
small_area_infill_flow_compensation is per-region parameter, it's not necessary to iterate though all regions to check whether to create a model.

* Make SmallAreaInfillFlowCompensator robus.
1. handle spaces/tabs/new lines etc
2. don't throw expection, fall back to no-op instead if parsing failed

* Fixing an issue that changing small_area_infill_flow_compensation per modifier didn't take effect
2024-06-25 00:20:20 +08:00
zhimin.zeng
d1acd0b560 FIX: Unwanted skirts when printing By Object
github: 4002
Change-Id: Id2df01bb0d296c5fea2bf53947b57abbb8eb0786
2024-06-15 20:15:35 +08:00
cochcoder
326468c053 Fix time cost not being considered in total cost (#5698)
* Fix time cost not be added in total cost
2024-06-15 14:56:14 +08:00
SoftFever
37b443624e Fixed an issue that small_area_infill_compensation_model was initialized even it's not used.
Fixed #5550
2024-06-04 23:14:22 +08:00
Noisyfox
dd9678ea53 Fix issue that skip object won't trigger filament change when print-by-object is used (#5576)
* Fix issue that skip object won't trigger filament change when print-by-object is used
2024-06-04 20:00:56 +08:00