6622 Commits

Author SHA1 Message Date
Lukáš Hejl
dbd0369767 Use forward declarations in Travel.hpp. 2024-01-17 12:22:22 +01:00
Lukáš Hejl
1b0ba60280 Rename m_last_obj_copy to m_current_instance and use struct instead of std::pair.
Also, instead of storing the shift of the instance, store the instance index.
2024-01-17 12:22:22 +01:00
Lukáš Hejl
317db5fab4 Move ObjectLayerToPrint from GCodeGenerator to outside to allow using forward declaration. 2024-01-17 12:22:22 +01:00
SachCZ
ff30d7aad3 Replace last_pos and helpers with optional in GCode.cpp 2024-01-17 12:22:22 +01:00
SachCZ
7f397cd7b3 Implement ramping layer change using a tag in gcode
During layer change, instead of generating the gcode, generate a placeholder tag. Then at the end of layer processing replace this tag with a ramping travel move.
This solves the issue, that one does not know the starting point of the current layer where the layer change gcode would be originally generate.
The ramping layer changes uses smoothing of the ramping travel. Also it is adjusted in such a way that it increases the ramp angle when the travel is too short, to always reach the next layer.
2024-01-17 12:22:19 +01:00
SachCZ
24e3254697 Smooth z-hop curve to avoid unreasonably high jerk setting.
* Replace the ramping travel with a smooth ramping travel on marlin 2 under the right circumstances.
2024-01-17 12:21:36 +01:00
Martin Šach
eff53d4dba Add option cmd option to limit the number of threads 2024-01-17 10:45:13 +01:00
Martin Šach
18c23383af Remove various perl specific code 2024-01-08 10:27:38 +01:00
Martin Šach
d12146e5f0 Remove make_fills() that was just for perl 2024-01-08 10:27:38 +01:00
Martin Šach
0b3974954d Remove layer count in GCode.hpp 2024-01-08 10:27:38 +01:00
Martin Šach
b287bbc5dc Remove obsolete cmake find script and also remove Fill.hpp 2024-01-08 10:27:38 +01:00
Lukáš Hejl
7ab3e5490c SPE-2096: Fixed calculation of maximum wipe length in XY coordinates.
Also, comparing the accumulated length of the path for wipe was incorrectly mixing scaled and unscaled distances.
2024-01-05 22:43:30 +01:00
Lukáš Hejl
229946a25c Reorganize getArea() in TreeModelVolumes to silence the warning (<anonymous> may be used uninitialized in this function).
This warning was shown because the previous code was triggering a bug in GCC. More about the bug can be found here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465.
2024-01-05 22:38:16 +01:00
Lukáš Hejl
7e8f45a302 Remove unused variable 'some_compatible' from ExtruderFilaments::update_compatible_internal().
This variable hasn't been used since the beginning.
2024-01-05 22:38:16 +01:00
Lukáš Hejl
413241fcbc Remove unused variable path_length from GCodeGenerator::_extrude().
This variable hasn't been used since the beginning.
2024-01-05 22:38:16 +01:00
Lukáš Hejl
f9825bb6f4 Silence warnings in ExtrusionSimulator about unused variables that were there just for debugging purposes. 2024-01-05 22:38:16 +01:00
Lukáš Hejl
124ce1c31f Silence the warning about the unused function get_deviation_sum_squared() in Arc Welder. 2024-01-04 10:22:27 +01:00
Lukáš Hejl
611afd9789 Replace some deprecated boost functions.
Actually, all those deprecated functions were internally called those new functions. So there isn't any risk to use them directly.
2024-01-04 10:22:27 +01:00
Lukáš Hejl
2c671d8d6c Use memcpy instead of strncpy in GCodeFormatter::emit_string() to silence the warning.
The warning was there because std::string_view::data() returns a pointer to a buffer that is not necessarily null-terminated. So, strncpy shouldn't be used on non-null-terminated buffers, but we always relied only on the buffer length, so it couldn't cause any issues.
2024-01-04 10:22:27 +01:00
Kristian Nielsen
c7d31f980a Fix missing braces around multi-line if ()
Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2024-01-04 10:21:24 +01:00
Lukáš Hejl
7e889bbe7c SPE-2054: Fixed missing infills on multi-part models caused by 3cb2f5f58f952bc104260c84292411894f957552 reported in #11721.
The temporary variable used for reordering ExPolygons wasn't cleared, and it contained empty ExPolygons from previous reordering. This caused those empty ExPolygons replaced actual ExPolygons for infill.

Another issue was that m_fill_expolygons was reordered, but m_fill_expolygons_bboxes were left untouched.
2024-01-03 18:14:15 +01:00
Lukas Matena
e0a03c7970 Merge branch 'master_271' into HEAD 2023-12-13 15:49:26 +01:00
YuSanka
a0365af92c Translations: fixes and changes in phrases 2023-12-11 15:43:41 +01:00
Lukas Matena
d50ecd80d1 Added a binary G-code switch into Preferences 2023-12-11 15:40:35 +01:00
Lukas Matena
2d130c71b6 Move binary gcode checkbox to Printer Settings 2023-12-11 15:40:35 +01:00
Lukas Matena
1ee6e42642 Simplify binary metadata generation 2023-12-11 12:34:52 +01:00
Martin Šach
1d9bd1c62c Disable helical layer change when there is no layer change retraction 2023-12-08 14:10:11 +01:00
Lukas Matena
64a9b546fd Added wipe tower weight into G-code metadata 2023-12-08 14:05:12 +01:00
Justin Schuh
834f6ef37c Improve filtering on Klipper exclude_objects labels (#11802, PR#11813 by @jschuh) 2023-12-08 13:51:32 +01:00
Martin Šach
01502f6a14 Fix SPE-2068: Helical layer changes out of bed bounds. 2023-12-07 14:58:49 +01:00
Martin Šach
466ac9105e Fix: Spiral vase missing perimeter 2023-12-07 14:45:08 +01:00
Martin Šach
c3132e91c8 Fix SPE-2068: Helical layer change generating travels out of bounds. 2023-12-06 10:50:13 +01:00
Martin Šach
e298593a2e Refactor: Separate gcode generator layer changes utilities to a file. 2023-12-06 09:49:56 +01:00
Martin Šach
1ec4cbe2d6 Add forgotten header guards 2023-12-06 09:49:56 +01:00
Martin Šach
e13d3cdbf2 Refactor: Move gcode travel utils to a separate file. 2023-12-06 09:49:56 +01:00
Martin Šach
2175fc3f4d Fix lift before obstacle over multiple instances. 2023-12-06 09:49:56 +01:00
Martin Šach
0a032dd1c2 Fix: Invalid assert in SupportSpotsGenerator 2023-12-05 10:12:48 +01:00
Martin Šach
f6efd3a501 Fix: Spiral vase missing perimeter 2023-12-04 10:03:34 +01:00
Martin Šach
e8064cdb14 Refactor: SupportSpotsGenerator integrals implementation improvements.
Split Integrals constructor to accept polygon and polygons.
Add operator+(Integrals, Integrals).
Make sure extrusion extraction for integral calculation throws in invalid case.
2023-12-01 09:28:21 +01:00
Martin Šach
782fa47791 Remove usage of polygons_covered_by_width.
In SupportSpotsGenerator there is a need to compute integral over
extrusions.
The mentioned function is slow for this use case. As it solves a harder
problem.
It is better to iterate the extrusion lines directly.
2023-12-01 09:28:21 +01:00
YuSanka
0a1e4758a1 Fix for #11727 : 2.7.0-rc2 Import ConfigBundle not pulling in all physical printers 2023-11-23 15:48:04 +01:00
Lukas Matena
80c9f53167 Fixed issues in wipe tower brim (SPE-2049, #11708) 2023-11-21 13:24:42 +01:00
Lukas Matena
bbd7828dc1 Fixed wipe tower lines outside its perimeter (SPE-2049, #11692) 2023-11-21 13:24:42 +01:00
YuSanka
55e3bf4c0a Fix for PresetCollection::load_external_preset()
"filament_vendor" parameter isn't used neither by the UI nor by the slicing core,
therefore erase it from config apply to avoid redundant "dirty" parameter in loaded preset.
2023-11-16 15:12:17 +01:00
YuSanka
0e1a0e856f Fix for SPE-2020 : Notification about temporary installed preset doesn't appear anymore
Description of bug:
During fixing of SPE-1845 there was made changes with 7280b2a0 commit.
But those changes destroyed a initial behavior. All presets are selected correctly now,
but user doesn't receive a notification about temporary installed presets, if any was.
2023-11-16 15:11:41 +01:00
YuSanka
f69b1a2247 Fix for SPE-2039 : Wrong preset selection, when loading configuration from 3mf.
Bug description: If all new presets are actualized from current update
but some of them isn't installed (doesn't selected in ConfigWizard),
and user try to load 3mf with those non-installed presets, than first visible preset is selected
instead of temporary installed preset.

+ Update dirty state for edited preset only it's needed.
2023-11-16 15:11:23 +01:00
tamasmeszaros
293393d2b1 Fixing hanging arrange
fixes #11392
2023-11-15 14:56:20 +01:00
Justin Schuh
0b68210849 Fix of #11648: Prevent overhang fan speeds from spilling into infill. 2023-11-14 11:15:15 +01:00
Lukas Matena
32c80a8903 Fixes in phrases 2023-11-10 15:23:54 +01:00
Martin Šach
91e79af261 Fix wipe tower integration wiht regard to "no_sparse_layers".
Wipe tower with "no_sparse_layers" enabled was completely broken.
This commit introduces necessary changes to WipeTowerIntegration.cpp
for it to work properly.
2023-11-10 12:19:39 +01:00