13703 Commits

Author SHA1 Message Date
Noisyfox
2348928b25
Fix crash when loading gcode file twice (#7217)
* Fix ASAN use-after-free error when loading 3mf file with gcode by drag-and-drop

* Fix crash when loading gcode file twice
2024-10-26 21:29:03 +08:00
Noisyfox
ae31f4fb1f
Fix issue that thumbnail color not updated properly when AMS slot mapping changes (#7194)
* Fix issue that thumbnail color not updated properly when AMS slot mapping changes
2024-10-25 23:25:17 +08:00
Dima Buzdyk
983f1a827e
pa calib: print flow value and acceleration (#7178)
* pa calib: print flow value and acceleration

Print flow value and acceleration for PA pattern calibration.
This should help keep track during adaptive PA calibration.

* pa pattern: fix legent section too wide in some cases

Rework pa pattern legent generation to correctly estimate
width of the legend section.

Current flow value now has variable length which is a longest of
PA value and the acceleration for a given test.

Few examples:
1. PA value are 4 characters:        0.04
   Acceleratioion 3 chars:           400
   Flow value will be 4 chars long:  7.98, or 11.3

2. PA:      0.018
   Accel:   1000
   Flow:    12.35, or 6.345

3. PA:      0.04
   Accel:   15000
   Flow:    34.34, or 4.567

Rework number-to-string conversion flow to correctly round values at
given precision.
2024-10-24 23:41:51 +08:00
Noisyfox
be5bc632ad
Fixed Clipper library (our own fork of it) when working with Z coordinate (#7180)
Fixed Clipper library (our own fork of it) when working with Z coordinate:
The Eigen vector type compares all components, while the ClipperLib
own IntPoint type compared x and y only.
Fixed by overriding the ==/!= operators to compare just x and y components
for Eigen types.

Cherry-picked from prusa3d/PrusaSlicer@0202eec4b7

Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2024-10-24 22:26:40 +08:00
Noisyfox
6169b4fa2a Fix issue when the extruder do not have any adjustable extrusion 2024-10-24 21:27:46 +08:00
Noisyfox
4bb6525c4f Fix issue that total_time is not updated after slowing down 2024-10-24 21:27:03 +08:00
Noisyfox
dc943eddaf Exclude movements before first extrusion from layer time calculation when dealing with layer cooling (SoftFever/OrcaSlicer#7171)
If layer starts with a color change, the full layer time will be much longer, which will trick the slicer to think this layer has enough cooling time.
However the actual filament extrusion time (the real "printing" part) won't necessarily have enough time to cool down, so if we don't do extra slowing down
before starting next layer, the filament could still be soft and lead to worse surface quality.
2024-10-24 17:24:09 +08:00
Philipp
425d9c97e4
Allow printing prohibited filaments when 'Skip AMS Blacklist Check' is enabled (#7161)
Update DeviceManager.cpp
2024-10-22 23:13:34 +08:00
Ioannis Giannakas
c0ce64ce55
Bug fix: Inner Outer Inner wall ordering mode failed to reorder in certain edge cases with arachne (#7134)
* Bug fix: Inner Outer Inner failed to reorder in certain edge cases

* Fixing IOI proximity search spacing calculations
2024-10-22 23:02:44 +08:00
SoftFever
5cf16b9b5d
Add Creality Print support (#6928)
# Description

Added support for Creality Print (E.g. Orca can upload and print
directly to Ender 3 V3 KE)

# Screenshots/Recordings/Graphs

Video: https://www.youtube.com/watch?v=ONzaMJhj_Hk

## Tests

Tested in the video above on a Macbook Pro, Ender 3 V3 KE.
It should also be tested on Windows but I don't have a windows computer.
2024-10-21 23:36:09 +08:00
SoftFever
eb195da546 Better way to find exe path 2024-10-08 18:09:03 +08:00
SoftFever
09672ea90c
Merge branch 'main' into feature/show-extruder-values-on-filament-overrides-tab 2024-10-07 19:43:50 +08:00
SoftFever
e73593c102
Merge branch 'main' into dev/bbs-support 2024-10-07 18:10:58 +08:00
SoftFever
1c43b2902c fix a build error 2024-10-07 18:10:14 +08:00
SoftFever
338f89a15b
Merge branch 'main' into dev/bbs-support 2024-10-07 16:44:01 +08:00
SoftFever
89d04ab9e9
General improvments to RatRig V-Core 4 & V-Core 4 HYBRID (#5966)
Resolves #5932

**The following changes made are made to all V-Core 4 versions** 

- Improved cover's quality 

![after](https://github.com/SoftFever/OrcaSlicer/assets/103969142/ecc22214-4e5e-4286-9baf-ce67e67912c7)
- Added RatRig's PunkFil ABS, PETG, and PETG CF filaments
- Added PETG-CF10 filament type & RatRig to filament vendors
- Increased max z speed to 200 from 50 and max acceleration travel to
10,000 from 9,000
- Enabled wipe and z hop, as well as, increased retract before wipe to
70% from 0%
- Improved layer change G-Code
- Fixed pause G-Code
- Added extruder clearance parameters 

*Almost all of these changes come from @nameisCruzCruz in #5932
2024-10-07 16:43:42 +08:00
SoftFever
17c0abbe32
Export negative parts (#7024)
Porting from Prusa exporting negative parts.

Before:

![image](https://github.com/user-attachments/assets/a5e041ce-7f0f-44e5-95ea-0a8b11252cc4)

After:

![image](https://github.com/user-attachments/assets/f0a6f6bb-13c7-4a6e-afb3-7631e2f4f634)
2024-10-07 16:42:12 +08:00
SoftFever
7422c7957f
making all four corners of the grid sharp instead of round (#6993)
# Simple visual change 

Currently, the grid has 3 round corners and 1 sharp corner. It seems
like bambu lab hard coded this specifically to fit their bed model. As a
non-bambu user, I dont like how the corners look.
![Screenshot 2024-10-02
152326](https://github.com/user-attachments/assets/ba905ed1-3557-488e-adb2-ea1ea93bb1cc)
![Screenshot 2024-10-02
152435](https://github.com/user-attachments/assets/7a2ec002-87c3-46ab-b5ff-8174c20890e3)

Another point I'd like to bring up is that rounded corners do not match
the boundary detection box.


## Tests
Tested locally on windows and macos.
2024-10-07 16:37:56 +08:00
SoftFever
9fbab1407f
FIX: CLI: fix an exception when parsing scale params (#6969)
# Description

This PR aims to solve an exception when using OrcaSlicer in CLI which
caused the --scale option to not work.
All credits to @lanewei120 from BambuStudio for pushing it on BS repo.

Related commit on BS:

2d4655e780 (diff-2fa194122e892282ec589e51d5f7da65da83ec0488ced4b63930345d1273a353R3797)
Related issue on BS:
https://github.com/bambulab/BambuStudio/issues/4628
Related issue on Orca:
https://github.com/SoftFever/OrcaSlicer/issues/6454
fixes #6454
## Tests

```
./orca-slicer.exe --scale 2 --slice 1 --allow-newer-file test_model.stl --debug 5
```
The command above works again and scale the model then slice the scaled
model. Before, the scale would not complete.
2024-10-07 16:34:07 +08:00
SoftFever
4a1d382964
Allow reverse on odd without detect overhang wall (#6922)
Fixes #6920
2024-10-07 15:59:19 +08:00
SoftFever
6ecf6bdbd7
Support multi-line progress information rendering (#6909)
Makes situations like #6098 less confusing.

Old:

![image](https://github.com/user-attachments/assets/9eeabb5a-9f7b-41f7-8123-c001b2f576e8)

New:

![image](https://github.com/user-attachments/assets/215e75a9-87c8-4963-a0b2-aa1f1198af62)
2024-10-07 15:56:16 +08:00
SoftFever
ab55d4eefc
Fix an issue that wrong z value was used if a new layer is started with wipe tower extrusions. (#6980)
…

# Description

This update, along with #6934, resolves the remaining issues with the
wipe tower.

The GCode class will no longer maintain its own Z height information
(m_nominal_z). Instead, it will utilize the Z height from GCodeWriter's
m_pos. This approach is less error-prone.

This PR also fixes #6755.
It also enforce "Enable Filament ramming" option


@igiannakas It should fix the wipe tower crashing issue
# Screenshots/Recordings/Graphs

<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->

## Tests

<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
2024-10-07 15:50:48 +08:00
SoftFever
0bf2b9dcff respect "Enable Filament ramming" option 2024-10-07 14:34:08 +08:00
cochcoder
f2d1429a01
Merge branch 'main' into rat-rig-covers 2024-10-06 12:07:48 -04:00
SoftFever
cc90d79190 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
7736cd1b39 fixed #6755 2024-10-06 20:36:00 +08:00
uSyzex
7b38376e4e FIX: CLI: fix an exception when parsing scale params 2024-10-06 13:36:12 +02:00
SoftFever
608e6375e6 Fix wrong z when zhop is diabled. 2024-10-06 19:16:15 +08:00
SoftFever
6f3c701a32 wip 2024-10-06 10:49:58 +08:00
vovodroid
9d37d1a084 Export negative parts. 2024-10-05 21:53:16 +03:00
SoftFever
2663b60281
Merge branch 'main' into feature/add-creality-print-support 2024-10-03 23:37:38 +08:00
Noisyfox
53b08f213b
Fix issue that z is not properly set in some cases when clipping polygon (#6955)
Fix issue that `z` is not properly set in some cases when clipping the polygon (SoftFever/OrcaSlicer#6933)

Apply the patch from https://sourceforge.net/p/polyclipping/bugs/160/
2024-10-03 23:35:05 +08:00
azio25134
d52e2cc1b2 making all four corners of the grid sharp instead of round 2024-10-02 15:37:49 -07:00
cochcoder
cfceb873c2
Merge branch 'main' into rat-rig-covers 2024-10-01 21:44:20 +00:00
SoftFever
a5d2fa1aed 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
Ioannis Giannakas
5bb42bc0d5
Fix wipe tower issues with SEMM and ramming turned off (#6934)
* Fix wipe tower issues with SEMM and ramming turned off

* Purge tower last layer collision potential fix (for SEMM)

* Revert "Purge tower last layer collision potential fix (for SEMM)"

This reverts commit 9fc465c2d914adf58a74b0e5167dfb04646ef939.
2024-10-01 22:54:14 +08:00
Noisyfox
cedb939f4e Fix compile error 2024-09-30 14:31:22 +08:00
Noisyfox
ebed03ea92 Fix compile warning 2024-09-30 14:18:30 +08:00
Noisyfox
ff265745c6 Update PrintObject::_generate_support_material() to match BBS 2024-09-30 14:12:30 +08:00
Noisyfox
97d1745e5a Update files related to support to match BambuStudio's project structure 2024-09-30 14:12:29 +08:00
cochcoder
23d597a302 Add PETG-CF10 filament type & RatRig filament vendor 2024-09-27 12:25:12 -04:00
Rob Duplock
6dea7b444e Fixed bug with spaces in filename 2024-09-27 22:06:48 +10:00
Rob Duplock
735d179f1a Add support for creality print 2024-09-27 17:11:40 +10:00
Noisyfox
8709f22597 Allow reverse on odd without detect overhang wall (SoftFever/OrcaSlicer#6920) 2024-09-27 09:24:21 +08:00
Noisyfox
e755d781e1 Support multi-line progress information rendering 2024-09-26 16:22:15 +08:00
SoftFever
17492c1e5b Fix and update locale 2024-09-25 19:58:26 +08:00
GarlicDebug
fff4da56bd
Fixed Make Overhangs Printable and Multicolor Printing conflict (#6896)
Co-authored-by: Jasper <idc@gmail.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-09-25 19:52:38 +08:00
SoftFever
65fc14209d
Fix a bug that wipe tower has missing extrusions when ramming is disabled (#6894)
* Fix a bug that wipe tower has missing extrusions when ramming is disabled.

* hide "Prime all printing extruders" for SEMM printers
2024-09-25 19:34:18 +08:00
Noisyfox
ed41e3e5ce
Disable "cut to parts" when dovetail is selected. (#6891)
* Disable "cut to parts" when dovetail is selected.
Sync with latest PrusaSlicer code.

Co-authored-by: YuSanka <yusanka@gmail.com>
2024-09-25 19:31:17 +08:00
Vovodroid
23eb055cb5
Followup to clones auto arrange: use current plate (#6373)
* Use current plate for auto arrange clones
2024-09-25 19:29:21 +08:00