Commit Graph

14214 Commits

Author SHA1 Message Date
SoftFever
fa2c6829f1 Treat the printer as a generic printer when loading new printers not found in the system from a project file 2023-07-31 00:28:52 +08:00
SoftFever
69b3a6e65f Miscellaneous changes for PA calib:
1. Changed printing speed for all PA tests, where the speed will be calculated by max(100, outer_wall_speed) with consideration of max_volumetric_speed.
2. PA tower now uses the classic wall generator.
#1616
2023-07-30 23:03:36 +08:00
Noisyfox
9c583c0ebd Make Overhang Printable (#1615)
* First working conical overhang impl

* Add settings for Make overhang printable

* Added an Advanced setting to the Quality menu for Make overhang printable
* Allow toggling the feature and adjusting the angle threshold

* Retain recesses in the bottom of the model when "Make Overhangs Printable" is turned on

* Add settings for Make overhang printable hole size

* Allow disabling conical overhang per modifier

* Should check upper layer instead

* Skip unnecessary layers

* Apply conical overhang before any size compensation
which fixs the `lslices` not being updated issue and also the elephant foot compensation

* 1. Fix an issue that changing make_overhang_printable related parameters won't clear caches properly.
2. Tweak the logic of make_overhang_printable parameter so that it works for per region/object/print level. Remove make_overhang_printable_disable parameter.

* Change default make_overhang_printable_angle to 55

* One more missing commit

* 1. Skip checking default_region_config()->make_overhang_printable
2. Handle make_overhang_printable_angle and make_overhang_printable_hole_size value change

---------

Co-authored-by: David Bern <odie5533@users.noreply.github.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-30 20:20:43 +08:00
SoftFever
f7adff1c81 Fixed a regression where print settings set by calibration features were not applied properly #1614 2023-07-30 19:25:02 +08:00
ovlach
0977521223 fix: ambiguous call _check_convertible_to_path_source(const wxCStrData&) (#1597)
* fix: ambiguous call _check_convertible_to_path_source(const wxCStrData&)

* change to ToStdWstring() per discussion

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-30 09:46:50 +08:00
SoftFever
486043ee73 Optimized gcode generation. Reduce set fan speed commands #804 2023-07-30 00:16:09 +08:00
djperya
e6112bf851 compilation errors fixed of Ukrainian localizalion (#1610)
* compilation errors fixed of Ukrainian localizalion

* add UKRAINIAN lang option in UI

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-29 10:13:17 +08:00
Noisyfox
74011a9027 Port single wall on top surface from classic wall generator to Arachne (#1583)
* Port single wall on top surface from classic wall generator to Arachne

* Move the surface split code into a separate function to be shared between classic and Arachne. This also adds bridge detection to Arachne as well.

* Remove unwanted infills

* Fix insets calculating

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-29 10:12:47 +08:00
SoftFever
f2f192782a Overhang tweaks:
1. Revert back to classic overhang
2. Support percent for overhang speed
2023-07-28 00:19:08 +08:00
Jason M-H
6265b0f305 Calculate extrusion width %s as a function of nozzle width, not layer height (#1578)
* Calculate extrusion width %s as a function of nozzle width, not layer height

* handled more width conversions

* more missing percent handling

* even more missed percent handling

* even more more extrusion % handling

* some fixes

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-27 23:37:47 +08:00
SoftFever
f323e51a0e fix misspelling in the tooltip of Filter out tiny gaps option #1606 2023-07-27 22:21:10 +08:00
SoftFever
d9409bc738 Merge branch 'main' of github.com:SoftFever/OrcaSlicer 2023-07-27 22:03:45 +08:00
SoftFever
00e568ba9e fix sidelable font 2023-07-27 22:03:32 +08:00
SoftFever
99892a018e skip overhang degree check in PerimeterGenerator when overhang_speed_classic is not enabled 2023-07-27 22:03:12 +08:00
ovlach
6e40e5c426 Use namespaces to link against libcereal >= 1.3.1 (#1596)
0ffcfd8393

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-27 21:58:19 +08:00
thewildmage
75976fb0e6 Fix overly persistent pressure advance pattern (#1591)
* Reset model's calib_pa_pattern as needed

* Add initial config for skirt and brim in PA pattern
2023-07-26 19:23:41 +08:00
Morton Jonuschat
3ba3ce05f9 [BUGFIX] Fix emitting Klipper SET_VELOCITY_LIMIT commands (#1598)
[BUGFIX] Fix Klipper SET_VELOCITY_LIMIT code

- Always write out SET_VELOCITY_LIMTIT ACCEL=<acceleration> independently of the accel_to_decel setting
- Append the ACCEL_TO_DECEL fragment if enabled in config
2023-07-26 19:11:47 +08:00
SoftFever
e516d73d7b QoL: remember each printer's filament/bed/process settings (#1592)
* init work
TODO:
1. support multi filament
2. support project

* Properly handle filament number change when switching printers
2023-07-25 21:54:34 +08:00
SoftFever
9ae3001eb0 reduce AppConfig::Save() calls 2023-07-25 19:19:49 +08:00
Jason M-H
c033720435 Add Lift Z only Above/Below, On Surface (e.g. Only on Top) (#1562)
* Added config options for Enforce Lift Z (from SS, doesn't affect Gcode
yet)

* working, minus first layer override; also fixed m_last_extrusion_role not being set

* fixed logic to match SS

* minimize to just one config

* removed first layer override

* Cleaned up logic, working as intended

* added lift above z, lift below z; somehow broke filament overrides

* fixed overrides not working, but lift above/below and enforce don't override

* fixed filament overrides

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-22 21:07:13 +08:00
thewildmage
e339ed2a47 Add Ellis' pattern method for pressure advance calibration (#1547)
* Add pattern method to Pressure Advance dialog

* Convert calib_pressure_advance to more unique calib_pressure_advance_line

* Share move_to function with PA lines and patterns

* Add PA pattern to calib.hpp

* Implement move_to(Vec3d). Combine with Vec2d version

* Add call to PA pattern in GCode.cpp

* Add helper functions

* Add directionality to draw_digit

* Extract shared number drawing variables

* Extract convert_number_to_string function

* Use in-class initializers for pattern variables

* Add max_numbering_height function

* Add helper functions

* Extract shared delta helper functions

* Add pattern generate_test() and associated helpers

* Clarify use of math functions

* Remove unused move_to overload, accept move_to comments

* Add get_distance() and draw_line()

* Extract set_nozzle_diameter()

* Clean up and simplify

* Rearrange and clean up

* Start work on print_pa_pattern

* Complete basic draw_box function

* Add more helper functions

* Add struct for pattern config, more helpers

* Rearrange

* Add encroachment member variable

* Add structs to manage optional arguments

* Simplify optional arguments structs

* Update opt args usage. Finish draw_box function

* Complete print_pa_pattern function

* Reuse PA Line STL

* Fix forward declaration error

* Fix invalid comparison

* Fixing complier errors

* Make DrawDigitMode options more clear

* More compilation error fixes

* Yet more compile error fixes

* Fix incorrect default step value

* Handle top-level dialog changes, consolidate params definitions

* Add layer change G-code, set more print variables

* Simplify optArgs constructors

* Fix pattern drawing, minor misc. clean up

* Make draw_box() G-code comments more helpful

* Make more of draw_line() const

* Fix sequential number draw direction

* Extract shared e_per_mm function

* Fix misplaced decimal in PA Line

* Move short constructor into .hpp

* Fix inverted Y direction in pattern digit drawing

* Use placeholder STL to create needed layers

* Rearrange and clean up

* Proof of concept: Adding custom G-Code at layer

* Use new scaling method

* Reorganize Plater::calib_pa()

* Restructure calib

* New strategy for adding custom G-code

* Remove redundant invocation

* Use cube primitive as positioning handle

* Move logic to Plater

Modifications to model in GCode cancelled _do_export from within itself

* Consolidate m_starting_point and pattern_start functions

* Replace bed_center() with m_starting_point

* Fix and consolidate number tab creation

* Fix off by one layer bug

* Use correct bounding box

* Use Vec3d instead of Vec2d for m_starting_point and m_last_pos

* Add translate_starting_point function

* Vec3d fix

* Store CalibPressureAdvancePattern with model

* Formatting adjustments

* Move pattern when handle moves

* Improve const correctness

* Improve/fix pattern writer and config

* Fix speed setting bug

* Pass model into generate_gcodes to improve consistency

* Re-generate pattern on reslice

* Make pattern actually move with handle

* Fix overzealous m_last_pos initialization

* Use clearer function names

* Use correct model

* Remove unused member variable

* Don't hard-code print config settings

* Remove unused lines, formatting clean up

* Make sure set_key_value operates on existing keys

* Remove asserts which limited life of key/value set

* Update Calibration.md

* Update licensing info

* Actually use speed in draw_line

* Don't speed_adjust twice

* doc: Make width and speed settings used more clear

* Bugfix: Shouldn't need to move handle to see pattern

* Clean up

* Move mp_gcodegen into line method alone

* Fix wrong number thickness in PA Line

* Remove unnecessary middleman PatternSettings

* Give value of config to const m_initial_config, not ref

* Fix incorrect DrawBoxOptArg default

* Use line_width_anchor() for all of initial layer

* Use clearer function name

* Replace "anchor" with "first_layer" for better consistency

* Update Calibration.md

* Update Calibration.md

* Make number tab infill explanation more clear

* (Hopefully) fix missing origin

* Add GCodeProcessor tags

* Fully refresh config

* Don't store is_bbl_printer

* Move set_starting_point to private

* Don't constantly recreate GCodeWriter

* Use different step value for pattern test

* Remove redundant processor tags

* Label glyph G-code

* Fix comparison typo

* Set number print speed

* Fix mixed up draw_number parameter

* Don't use line_width_first_layer for pattern

* (Hopefully) fix temp tower generating PA pattern

* Start with pattern centered on plate

* Add gap between pattern and handle

* Fix overly persistent pattern

* Revert "(Hopefully) fix temp tower generating PA pattern"

This reverts commit 0aa1206886d57820799beaf62dc28b9b8e02545b.

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-22 20:48:56 +08:00
ZdDroid
9156b97781 Display print end time for in BL device page (#1568)
Show progress increase end time
Supplementary translation

Co-authored-by: ZdDroid <601865048@qq.com>
2023-07-22 10:40:15 +08:00
Hotsolidinfill
bac8d5256f Add Korean translation + Font problem (need help) (#1553)
* add ko_KR

* add

* additional translation
"Tip of the Day"

* add korean to language list

* -Fix Korean translation
-Add Russian to language list
2023-07-20 22:59:11 +08:00
SoftFever
af7c81ccb2 1. temp fix for Korean font
2. fix crashes when cjk language is use but the system don't have unicode support enabled on Windows
2023-07-19 18:17:21 +08:00
SoftFever
52c6caea49 fix vs2022 deps 2023-07-16 10:58:18 +08:00
战马
1a414a29e6 ENH: Revert "SidePopup actively destroys the window after closing"
This reverts commit 4e1ac98a089b4391699a333185150f468ddc42a1.

Reason for revert: bug

Change-Id: Ifc5c0596b0993d4e20f5b9e167e0ad5aaed92020
2023-07-13 18:34:17 +08:00
zhimin.zeng
53a0bd581a FIX: add filament type for flow rate slice info
Change-Id: I21cee225cc4349774216eda730ba086bf3697b00
2023-07-13 10:35:05 +08:00
chunmao.guo
3e8bef006a FIX: ModelMetadata is zipped without subpath, not substract it
Change-Id: I5af608b1aa312bfab79bbdea09e99f8b4b2de5de
2023-07-13 10:35:05 +08:00
chunmao.guo
e20d6236c4 FIX: pass error from gstreamer to wxMediaCtrl
Change-Id: If275d0ebeb7089f67ad366811dc48009b86af564
2023-07-13 10:35:05 +08:00
zhimin.zeng
779955cc41 FIX: crash when save P1P pa cali result
Change-Id: I28cebba490210a998d07ed779f04adea89a83191
2023-07-13 10:35:05 +08:00
qing.zhang
937aa01ffb 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
zhimin.zeng
87caaf5c5e FIX: selected preset is not correct when switch printer
Change-Id: I82d5155a279e36e02f439475839f79cdb738063c
2023-07-13 10:35:05 +08:00
tao wang
26d856361c FIX:ip address dlg&no help images displayed
Change-Id: I8c55ab3e8d466499a7a790938f41151690bc0d65
2023-07-13 10:35:05 +08:00
tao wang
8f76563cba ENH:SidePopup actively destroys the window after closing
fixed STUDIO-3525

Change-Id: I6ae33e8c73694c574a26126abbcf1074807abdd8
2023-07-13 10:35:05 +08:00
tao wang
65048d3737 FIX:fixed error msg cannot be displayed in the bind dialog
Change-Id: Id64a755c91eed08dc5c9beeea17959b16ea4f4f0
2023-07-13 10:35:05 +08:00
zhimin.zeng
3456e29644 FIX: select preset in modifying, the preset is null
Change-Id: If002b614af542c351c26b12a77123e3ce26f8301
2023-07-13 10:35:05 +08:00
zhimin.zeng
b54c802954 FIX: probabilistic errors occur when flow rate cali(manual)
Probabilistic errors occur during the calibration process, resulting in the inability to continue the flow rate calibration

Change-Id: I132b08755383f358c5573610a51f91aacf912ca9
2023-07-13 10:35:05 +08:00
liz.li
350d69937e FIX: replace user preset name with sys preset name
Change-Id: I8469224c9443049bb8b2b1c0feee3bdc4335a7ea
2023-07-13 10:35:05 +08:00
梨子
fb35b77e85 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
liz.li
cc166a6bcb FIX: add validation when save calibration result
Change-Id: I694c038f98ea6cbd2fe44dfe624c8afdf56cc9ac
2023-07-13 10:35:05 +08:00
zhimin.zeng
1db11bf267 FIX: P1P PA save value to error tray when switch printer
Change-Id: I2b136e47f99ecd98cf4d89865f48f360a9ee03dc
2023-07-13 10:35:05 +08:00
chunmao.guo
90fead29ae FIX: delay start tunnel mqtt when deivce is busy
Change-Id: Ied28a74a35d9be54aa55f157aff8352160d85535
2023-07-13 10:35:05 +08:00
Stone Li
aba6fb9868 ENH: fix track record logic
Change-Id: If2953bd3ed9ce1c156f805e551dbe4d99b895737
2023-07-13 10:35:05 +08:00
zhimin.zeng
b9a745eae1 FIX: fix some display problem
1. check the flow rate save name valid
2. fix the crash when saving with Chinese symbols
3. handle the display of Chinese symbols

Change-Id: I3abe99ba17b2cc5893431d48de11a9597bf489a6
2023-07-13 10:35:05 +08:00
liz.li
535adbc04d FIX: calibrate button layout [STUDIO-3595]
Change-Id: I98f6d6a1d9607b9b1e3db343da854d09ce3c5336
2023-07-13 10:35:05 +08:00
liz.li
56d41c374a FIX: string_to_float not work as expected in some language
Change-Id: I2ea4e5547d48167f066638378417a30b1b0c82ac
2023-07-13 10:35:05 +08:00
zhou.xu
2a5dbdd800 FIX: deleted plate name donot update
fix the issue of deleting plate name after entering some character

Change-Id: I572a922b05b3f5e83ad956a7b4fb197430f13df5
(cherry picked from commit bfb5f58e1d29a6f518915882736453fe425ad984)
2023-07-13 10:35:05 +08:00
liz.li
38cb7c9070 FIX: didn't update ext spool comboBox filaments
Change-Id: I5c2d12952b1b3a4f12e1110ff2635eb17e4eccef
2023-07-13 10:35:05 +08:00
chunmao.guo
7df14ec4df FIX: flush logs on crash
Change-Id: Ifc3a9c087dfe4d437b658e305db6f986fa181fab
2023-07-13 10:35:05 +08:00
chunmao.guo
3ac7715bda FIX: big thumbnail send by multi-frame
Change-Id: Ia3a88fb53b8cc27d20fa976822c91c09b4442d71
2023-07-13 10:35:05 +08:00