Commit graph

9180 commits

Author SHA1 Message Date
Scott Mudge
3433e7bfa0
Fix build warnings on windows, fix various bugs/logic errors/missing returns/etc, update boost::bind (#2229)
Fix build warnings on windows, fix various bugs/logic errors/missing returns/etc, update boost::bind.
2023-09-27 23:55:23 +08:00
Ioannis Giannakas
cf846195cc
Porting of Pressure Equalizer feature from Prusa Slicer 2.6.x (#2161)
* Overhang perimeter handling

Updated code to handle overhang perimeters as an overhang and not as a bridge.

* Preparing to add curled extrusions identification

* Porting curling calculations from Prusa Slier 2.6.1

* Prototype 1 - slowdown extended to detect curled edges and further reduce speed

First prototype of the code submitted.

* Working prototype - 2

Code is now finally working - external perimeters are slowed down as needed when there is likelyhood of curling up.

ToDo:
1. Reslicing the model causes the algorithm not to run - need to find where this fails to trigger the call for this.
2. Slowdown of internal perimeters not working yet.

* Updated to use overhang wall speed instead of bridging speed for this algorithm

* Fixed bug in speed calculation and tweaked parameters for high speed printer

Fixed bug in speed calculation and tweaked parameters for high speed printer

* Attempting to fix "set started" not being set

* Parameter tweak after print tests

* Fixed estimation not running when model is re-sliced.

* Removing debug printf statements and fixed threading flag.

* Fixed threading

* Parameter tweaks following print tests

* Made this as an option in the GUI

* Reintroduced handling of bridges as per original design

* UI line toggling when option makes sense to be visible.

* Fixed bug in field visibility & made it default to off

* Code optimisation

* Initial commit of code from Prusa Slicer 2.6.1

* Ported ExtrusionRole from Prusa Slicer 2.6.1

* fix compile errors

* Update GCode.hpp

* code changes to invoke pressure equalizer

* attempting to trigger pressure equalizer

(Not compiling)

* Update Fill.cpp

* Update Fill.cpp

* Pressure equaliser layer result update

* Further commits

* Merged PR https://github.com/prusa3d/PrusaSlicer/pull/9622

* First complete working version

* Update PressureEqualizer.cpp

* Implemented parameter in GUI

* Toggle fields according to compatibility

* Updated UI toggles between extrusion rate slope and arc fitting.

* Updated tooltip

* Introduced parameter smoothing segment length

This parameter influences the number of division a line will undergo in response to the requirement to adhere to the extrusion rate flow adjustment.

* Internal parameter and tool tip tweaking

* Parameter and tool tip tweaking

* Updated parameters and tooltip following testing.

* Sync PressureEq with latest PrusaSlicer

* Revert "Sync PressureEq with latest PrusaSlicer"

This reverts commit 131fb94c6b.

---------

Co-authored-by: MGunlogson <MGunlogson@users.noreply.github.com>
Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-27 21:44:45 +08:00
mia
ec90d7f3e4
GUI/Field: Fix crash in color picker init (#2220)
wxButton->GetBitmap() may return an invalid wxBitmap.
Guard against this.
2023-09-25 23:38:13 +08:00
mia
3b864e562a
GUI: Fix calls to PrintingTaskPanel::show_profile_info (#2219)
These will not compile on STL builds of wxWidgets. I assume that on
the non-STL variants, the first argument is cast to a boolean,
which might be a bug…
2023-09-25 23:37:25 +08:00
mia
ca534b5b96
Fix compatibility with STL builds of wxWidgets (#2218)
This removes the dependency on legacy wxWidgets configurations,
and makes OrcaSlicer compile on STL builds.

Also, the wxStringList class has been obsolete for at least 20
years, and disappeared from the documentation.
Replace with wxArrayString.
2023-09-25 23:35:30 +08:00
SoftFever
33f91c026a Hide purge tower preview in case of no tool changes 2023-09-25 23:17:56 +08:00
Noisyfox
7ef43f6849
Various support improvements and bugfixes (#2202)
* Organic supports: Added check for variable layer height, with which
Organic supports are not compatible.
Fixes prusa3d/PrusaSlicer#9528 and similar.
Check the object max Z against build volume Z in Print::validate().

Cherry-picked from prusa3d/PrusaSlicer@5b94971

* Fix crash with default tree support

* Show "support_critical_regions_only" only when using auto normal tree supports (#2195)

* Fix organic tree check

---------

Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-24 22:58:04 +08:00
Noisyfox
a73e533bdb
Fix gcode viewer on linux (#2110) 2023-09-16 22:26:20 +08:00
igiannakas
61437b2c76
Detection of curled edges to enhance slowdown for overhangs algorithm (#2056)
* Overhang perimeter handling

Updated code to handle overhang perimeters as an overhang and not as a bridge.

* Preparing to add curled extrusions identification

* Porting curling calculations from Prusa Slier 2.6.1

* Prototype 1 - slowdown extended to detect curled edges and further reduce speed

First prototype of the code submitted.

* Working prototype - 2

Code is now finally working - external perimeters are slowed down as needed when there is likelyhood of curling up.

ToDo:
1. Reslicing the model causes the algorithm not to run - need to find where this fails to trigger the call for this.
2. Slowdown of internal perimeters not working yet.

* Updated to use overhang wall speed instead of bridging speed for this algorithm

* Fixed bug in speed calculation and tweaked parameters for high speed printer

Fixed bug in speed calculation and tweaked parameters for high speed printer

* Attempting to fix "set started" not being set

* Parameter tweak after print tests

* Fixed estimation not running when model is re-sliced.

* Removing debug printf statements and fixed threading flag.

* Fixed threading

* Parameter tweaks following print tests

* Made this as an option in the GUI

* Reintroduced handling of bridges as per original design

* UI line toggling when option makes sense to be visible.

* Fixed bug in field visibility & made it default to off

* Code optimisation

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-09-16 22:24:18 +08:00
SoftFever
4a7d298786 disable prime tower preview 2023-09-14 00:11:43 +08:00
SoftFever
89efa44388 tweak prime tower display 2023-09-13 21:49:40 +08:00
SoftFever
e6269dd852 tweak default organic tree settings. 2023-09-13 20:10:33 +08:00
SoftFever
a149680eba consider windows DPI for slider 2023-09-12 22:19:45 +08:00
SoftFever
303a722795 fix regression that print end time is not missing 2023-09-10 00:07:35 +08:00
SoftFever
165a183c1f Display export gcode btn if pinter don't network setup 2023-09-10 00:07:18 +08:00
SoftFever
e95ec070c1 fix ramming ui 2023-09-09 23:05:45 +08:00
SoftFever
10ea35b87c update locale 2023-09-09 14:16:02 +08:00
SoftFever
e624632969 semm 2023-09-09 13:19:59 +08:00
SoftFever
cd3bbdb5f5 estimate tower size 2023-09-09 13:19:43 +08:00
SoftFever
6ff9ff03db wip 2023-09-09 13:19:43 +08:00
SoftFever
df302efa84 fix calibration menu 2023-09-08 01:29:09 +08:00
SoftFever
bb82482559 temp 170 2023-09-08 01:24:18 +08:00
Noisyfox
69d840030d
Fix calibrtion crash (#2019) (#2023) 2023-09-06 22:09:24 +08:00
SoftFever
d4c70f5528 Add Turkish language option 2023-09-05 20:34:38 +08:00
SoftFever
e97ab55e83 Fix webview freezing issue 2023-09-04 20:02:26 +08:00
SoftFever
f3e4016795 fix slider 2023-09-04 19:52:26 +08:00
xxxcq
9e0dbd91ff
Add option to enforce first layer min wall width (#1974)
Add option to set first layer min wall width
2023-09-04 00:07:40 +08:00
SoftFever
c54386d958 tweak gcodeviewer 2023-09-03 10:17:42 +08:00
SoftFever
0feea859c5 Fix printer connection regression 2023-09-03 10:17:22 +08:00
Noisyfox
1fdfc2fa45
Fix raft size when non-organic tree support is enabled (#1973) 2023-09-03 00:43:28 +08:00
Noisyfox
a1464735ce
Initial port of organic tree support from PrusaSlicer (#1938)
* Initial port of organic tree support from PrusaSlicer

* Port missing Organic support parameters from PrusaSlicer

* Update parameter naming

* Reorganize the `raft_first_layer_expansion` and `raft_first_layer_density` parameters as they are not only used by rafts

* Reset support style only in simple mode

* Sync latest update from PrusaSlicer & copyrights

* Fix organic tree support crash with invalid parameters

---------

Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-02 17:29:43 +08:00
Hotsolidinfill
b50dfb69a2
Change NotoSansKR to NanumGothic for Korean font (#1957)
* Update Korean translation

* 1. Fix blank button text after translation
2. Fix some mistranslated korean

* -fix bottom surface in gcode viewer
-update korean translation

* - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use

* Change NotoSansKR to NanumGothic, which has a height similar to the main font.
2023-09-02 10:59:31 +08:00
ZdDroid
51eae690bd
启动时进行 WebView2 运行时检查 (#1944)
* 启动时进行 WebView2 运行时检查

* 启动时进行 WebView2 运行时检查

* skip code sign for PR build

* Russian translation for OrcaSlicer V1.6.4 (#1900)

* Russian translation for OrcaSlicer V1.6.4

Please replace the existing translation with my translation.

Advantages of this translation:
-A normal translation based on the Prusa slicer translation (the translation of which I have been supporting for a long time). The translation that is used now is crude, there are a lot of errors and typos.
-Added missing lines

I also made a pull request for this translation for Bambu Studio (with small edits and add lines)

* file name and location updates

* update

rename Russian.po in OrcaSlicer_ru.po

* update

* move OrcaSlicer_ru.po to correct location

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>

* Fixed viewer resize malfunction when cjk language is use (#1909)

* Update Korean translation

* 1. Fix blank button text after translation
2. Fix some mistranslated korean

* -fix bottom surface in gcode viewer
-update korean translation

* - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use

* Port overhang extra perimeters from PrusaSlicer (#1939)

* Port overhang extra perimeters from PrusaSlicer

* Reduce duplicated code

* Add credits

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>

* Create OrcaSlicer_zh_TW.po for traditional Chinese translate (#1952)

Create OrcaSlicer_zh_TW.po

* update czech translate (#1949)

* QoL: make slider thinner

* QoL: show transparent shell in gcode preview and truncate long gcode line caused by native Klipper commands

* PlaceholderParser: new interpolate_table() "function"
interpolate_table(x, (x0, y0), (x1, y1), (x2, y2), ...)
interpolates a table at position x.

* GCodeGenerator / custom G-codes: Added new read/only options providing
the amount of total extruded material and per extruder extruded material
up to the point the value is evaluated:
"extruded_volume", "extruded_weight",
"extruded_volume_total", "extruded_weight_total"

* support profile notes

* Add support for PrusaLink webview

* update Prusa profiles

* Support Marlin 2

* tweak MK4IS

* Fix Linux build errors

* Add Tranditional Chinese

* Fix *nix build error and some other fixes

---------

Co-authored-by: ZdDroid <601865048@qq.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: Andy <andylg@yandex.ru>
Co-authored-by: Hotsolidinfill <138652683+Hotsolidinfill@users.noreply.github.com>
Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>
Co-authored-by: ablegods <85563455+ablegods@users.noreply.github.com>
Co-authored-by: renemosner <99507763+renemosner@users.noreply.github.com>
Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-08-31 21:36:57 +08:00
SoftFever
0b7b606881 Add Tranditional Chinese 2023-08-31 20:35:43 +08:00
SoftFever
33ac24d35a Support Marlin 2 2023-08-30 23:39:00 +08:00
SoftFever
80082464cb Add support for PrusaLink webview 2023-08-30 23:38:33 +08:00
SoftFever
4564945b48 support profile notes 2023-08-30 23:38:09 +08:00
SoftFever
95d12c24f6 QoL: show transparent shell in gcode preview and truncate long gcode line caused by native Klipper commands 2023-08-29 23:17:48 +08:00
SoftFever
40b08bb0e1 QoL: make slider thinner 2023-08-29 21:25:26 +08:00
Noisyfox
b9ca1c8720
Port overhang extra perimeters from PrusaSlicer (#1939)
* Port overhang extra perimeters from PrusaSlicer

* Reduce duplicated code

* Add credits

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>
2023-08-28 19:56:09 +08:00
Hotsolidinfill
6710d1845d
Fixed viewer resize malfunction when cjk language is use (#1909)
* Update Korean translation

* 1. Fix blank button text after translation
2. Fix some mistranslated korean

* -fix bottom surface in gcode viewer
-update korean translation

* - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use
2023-08-28 19:39:19 +08:00
SoftFever
9bab2e2efa fix errors after cherry picking commits 2023-08-27 22:44:37 +08:00
David Kocik
85251de418 Missing overrides in PrusaConnect class. 2023-08-27 18:11:13 +08:00
David Kocik
9df97e004d Upload changes
PrusaLink: Use PUT or POST based on information read during test connection (upload-by-put). If put - do additional GET for storage_list and let user to choose where to upload or show name if only 1 is possible. Allow PrusaLink for MK2.5 and MK2.5S.
PrusaConnect: New host type PrusaConnect inherited from PrusaLink class with filled host address, disabled http diggest. After upload read header information - status message and pass it to notification and Printhost upload dialog via events, this message can be shown as warning notification and is recieved in localized lang. Pass accept-language shortcut in upload header. 3 option to upload. (upload, to queue, to print)
Upload Notification: Showing status text, changes in text, not showing close button, Completed state on special call (not 100%) and other design changes.
Right panel: Open URL button.
2023-08-27 18:07:48 +08:00
David Kocik
13deee3c8f PrusaLink - cherrypick pick from stable branch
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
2023-08-27 17:47:38 +08:00
SoftFever
ea46af82d6 Minor fixes continued 2023-08-27 16:35:50 +08:00
Stephen Hurd
17811c997b
Add option in the CTRL-M dialog to invert axes (#1928)
Some people prefer their axes inverted when using a spacemouse.
This this, you can invert any set of axes you want.
2023-08-27 11:29:46 +08:00
SoftFever
012f113eae misc fixes 2023-08-27 11:28:01 +08:00
SoftFever
aa4c042855 micro refactor vender type 2023-08-27 11:01:52 +08:00
SoftFever
e6fcbfae07 fix 2023-08-26 20:55:44 +08:00