293 Commits

Author SHA1 Message Date
enricoturri1966
bc3a8b037a GCodeProcessor::process_binary_file() modified to process File Metadata Block set as optional 2023-09-08 09:10:40 +02:00
enricoturri1966
0f939409b8 Merge branch 'master_262' of https://github.com/Prusa-Development/PrusaSlicerPrivate into master_262 2023-09-05 12:29:37 +02:00
enricoturri1966
53adc68717 Tech ENABLE_BINARIZED_GCODE set as default 2023-09-05 12:17:47 +02:00
Vojtech Bubnik
c846e39767 Merge branch 'master' into master_262 2023-09-05 09:44:54 +02:00
enricoturri1966
317326bf9c Removal of tech ENABLE_BINARIZED_GCODE_DEBUG 2023-09-05 08:46:19 +02:00
enricoturri1966
d6ca8134ed Removal of tech ENABLE_BINARIZED_GCODE_WIN_DEBUG 2023-09-05 08:34:40 +02:00
Vojtech Bubnik
8dad25efc4 Merge branch 'master' into master_262 2023-09-04 14:44:32 +02:00
enricoturri1966
9c801d736a Fixed crash in GCodeProcessor::post_process() when backtracing into gcode generated by XL printer 2023-09-04 09:30:14 +02:00
ps_copyright
f32859c302 final copyright headers 2023-09-01 14:49:07 +02:00
Vojtech Bubnik
529f1fb395 Merge branch 'et_spe1784_binary_gcode' into master_262 2023-08-30 18:52:55 +02:00
Vojtech Bubnik
015a24133a Fixed some compilation warnings. 2023-08-30 12:51:35 +02:00
Vojtech Bubnik
259fc0ff4b Setting the binary G-code default compression. 2023-08-28 19:21:08 +02:00
Vojtech Bubnik
1c26f0bf60 Merge branch 'master_262' into et_spe1784_binary_gcode 2023-08-28 18:53:30 +02:00
enricoturri1966
bfbe4dacae Few small refactorings 2023-08-21 14:26:03 +02:00
enricoturri1966
aec962c295 Preview - Update gcode window when exporting to binary gcode 2023-08-21 13:22:38 +02:00
enricoturri1966
cad97bc9a2 GCodeViewer - Update gcode window for binary gcode files 2023-08-21 12:26:56 +02:00
enricoturri1966
0b6ab8359a Removed unused parameter 2023-08-14 13:18:25 +02:00
enricoturri1966
98be146fa9 Some code semplification 2023-08-14 09:55:00 +02:00
enricoturri1966
8e391d00da Changes required by update of libbgcode library interface 2023-08-14 09:38:22 +02:00
enricoturri1966
0bea17c128 Preview and GCodeViewer: removed file mapping for gcode window visualization + Fixed build on non Windows OSs 2023-08-11 09:20:27 +02:00
enricoturri1966
6b1dc90075 Added new printer metadata for binary gcode files 2023-08-10 10:30:28 +02:00
enricoturri1966
e1724e1fa1 Fixes required by changes in interface of libbgcode 2023-08-08 12:42:26 +02:00
enricoturri1966
5deb4470c7 Changes required by updated library libbgcode 2023-08-04 14:44:45 +02:00
enricoturri1966
eb8d01888d Added import of config from binary gcode files 2023-08-04 12:35:40 +02:00
enricoturri1966
cd43a8e744 Fixes required by changes into libbgcode library interface 2023-08-03 15:31:13 +02:00
enricoturri1966
ec16420f11 Integrated library libbgcode 2023-08-03 12:57:55 +02:00
Vojtech Bubnik
e0baccd654 ArcWelder: Disabled for pressure equalizer.
Fixed some compiler warnings
2023-07-27 10:04:21 +02:00
enricoturri1966
f02e8e3438 Renamed namespace 2023-07-27 09:04:44 +02:00
Vojtech Bubnik
98c011d59b ArcWelder: Improved resolution of arc discretization in G-code preview 2023-07-26 11:24:32 +02:00
enricoturri1966
ee87536ff6 Added debug imgui dialog to allow to change binary gcode parameters at runtime 2023-07-21 12:24:24 +02:00
enricoturri1966
a11009c3e0 SPE-1784: New compressed (binary) gcode format integration
Populated printer metadata block

Small optimization for print metadata
2023-07-21 08:29:13 +02:00
enricoturri1966
3f5de75bae SPE-1784: New compressed (binary) gcode format integration
Added GCode Block save/load with no encoding

Changed blocks order to: File metadata|Printer metadata|Thumbnails[]|Print metadata|Slicer metadata|GCode[]
2023-07-20 14:20:00 +02:00
enricoturri1966
ecb1a23edd SPE-1784: New compressed (binary) gcode format integration
1st installment as part of tech ENABLE_BINARIZED_GCODE

Still missing GCode Block save/load
2023-07-19 13:18:04 +02:00
enricoturri1966
9fe42ecbdc Method GCodeProcessor::process_G2_G3() modified to process lines G2/G3 R 2023-07-18 15:23:40 +02:00
Vojtech Bubnik
19062b4d5f ArcWelder path interpolation based on the work by Brad Hochgesang @FormerLurker.
WIP GCode/SmoothPath.cpp,hpp cache for interpolating extrusion path with arches.
Removed Perl test t/geometry.t, replaced with C++ tests.
Refactored ExtrusionEntity and derived classes to hold extrusion attributes in new ExtrusionFlow/ExtrusionAttributes classes.
Reworked path ordering in G-code export to never copy polylines, but to work with a new "flipped" attribute.
Reworked G-code export to interpolate extrusion paths with smooth paths and to extrude those smooth paths.
New parameters: arc_fitting, arc_fitting_tolerance
Renamed GCode class to GCodeGenerator
Moved GCodeWriter.cpp/hpp to GCode/
Moved Wipe from from GCode.cpp,hpp to GCode/Wipe.cpp,hpp
Moved WipeTowerIntegration from GCode.cpp,hpp to GCode/WipeTowerIntegration.cpp,hpp
New variant of douglas_peucker() to simplify range of iterators in place.
Refactored wipe in general and wipe on perimeters / hiding seams.

WIP: Convert estimate_speed_from_extrusion_quality() and its application to smooth paths.
WIP: Cooling buffer to process G2G3, disable arc fitting for filters that cannot process it.
2023-07-13 11:54:42 +02:00
enricoturri1966
1338b78c8d SPE-1776: Stop backward adding M104 lines when commands G28/G29 are found, during postprocessing gcode 2023-06-14 16:36:02 +02:00
enricoturri1966
c4294beb34 SPE-1749: Refactoring of GCodeProcessor::process_G1() and GCodeProcessor::process_G2_G3() 2023-06-08 14:46:36 +02:00
enricoturri1966
166c30096a SPE-1749 - Method GCodeProcessor::process_G2_G3() modified to match modified firmware 2023-06-08 14:46:23 +02:00
enricoturri1966
54cc852e42 SPE-1749: GCodeViewer - Faster processing of G2/G3 lines 2023-06-08 14:46:07 +02:00
enricoturri1966
8b255e8e9b SPE-1762: Fixed crash in GCcodeViewer when loading gcode files generated with Cura 2023-06-08 13:56:59 +02:00
enricoturri1966
578921257d SPE-1739: Fixed calculation of gcode preview sequential slider endpoints 2023-06-02 09:37:05 +02:00
enricoturri1966
681227be71 Fixed crash in fff_print_tests 2023-05-31 13:34:02 +02:00
enricoturri1966
c03a9d1a3e Follow-up of 2424f9826fd13a4f5174067d6c417468bdf45284 - Fixed the fix in GCodeProcessor.cpp 2023-05-25 13:42:42 +02:00
Vojtech Bubnik
2424f9826f Fixed some compilation warnings. 2023-05-25 12:52:47 +02:00
PavelMikus
3346b422a7 Fixed various bugs in reconstruction of polygon from vertical lines 2023-05-12 11:29:50 +02:00
enricoturri1966
4986afe94f Tech ENABLE_GCODE_POSTPROCESS_BACKTRACE set as default 2023-04-26 09:34:02 +02:00
PavelMikus
a65a68ad93 fix missing include 2023-04-21 10:04:45 +02:00
enricoturri1966
5c581e3998 Fixed warnings 2023-04-20 08:42:09 +02:00
enricoturri1966
99f3a3d54f SPE-1649 - Fixed crash in G-code post processor calculating the preheat / cooldown positions 2023-04-19 12:55:21 +02:00
enricoturri1966
c8468839da Fixed method ExportLines::update() to avoid potential deferencing of invalid iterator 2023-04-13 15:34:09 +02:00