31 Commits

Author SHA1 Message Date
Vojtech Bubnik
a693adbeab follow-up to eba6a81e38f2183c524584127c4ddef9ef5c9c04 2023-10-03 14:36:38 +02:00
Vojtech Bubnik
852f10bbe7 Fixing G-code analyzer for G2/3 with I, but not J or vice versa. 2023-10-03 14:36:38 +02:00
enricoturri1966
53adc68717 Tech ENABLE_BINARIZED_GCODE set as default 2023-09-05 12:17:47 +02:00
Vojtech Bubnik
8dad25efc4 Merge branch 'master' into master_262 2023-09-04 14:44:32 +02:00
ps_copyright
f32859c302 final copyright headers 2023-09-01 14:49:07 +02:00
enricoturri1966
cad97bc9a2 GCodeViewer - Update gcode window for binary gcode files 2023-08-21 12:26:56 +02:00
Lukas Matena
c843349d35 GCodeLine::has_value now uses locale-independent functions for parsing:
This will hopefully fix the mysterious issues #10380 #10331 #10542.
The reason is not exactly clear, seems similar to https://stackoverflow.com/questions/76133503/strtod-does-not-respect-locale-on-macos-13-3-1.
Possibly a bug in macOS 13.3.1
2023-06-13 11:40:29 +02:00
Vojtech Bubnik
423503a6c5 Follow-up to 3713f09a8e461435d66cb375ddd41fb5f22bf7ef
30fbdd123525e1ea04d4af7593efc20a4b223147
Fixed duplication of infills.
2022-11-22 09:27:11 +01:00
Vojtech Bubnik
7e77048593 Removed shiny profiler. The Shiny profiler was only working on MSVC
and nowadays the sampling profiler inside Visual Studio is better.
2022-08-24 16:32:01 +02:00
Vojtech Bubnik
a627614b58 Perl unit tests for perimeters and multi-material were rewritten to C++.
Perl binding was slimmed down, namely Clipper is no more linked by Perl.
2022-05-04 15:06:04 +02:00
enricoturri1966
ab171441aa Follow-up of 4b4d1c2f2a208d9647f17d2dcc5bf9f53d74f33f - Restored line deleted by mistake 2022-01-19 13:26:58 +01:00
enricoturri1966
4b4d1c2f2a #7773 - Fixed GCodeReader::parse_line_internal() to skip whitespaces between axis digit and axis value 2022-01-19 12:08:00 +01:00
Vojtech Bubnik
c313e6793a Follow-up to 1ca24f0bd03d7f97d576bfac43022733459a9c92
Fixed visualization of G-code in G-code viewer after 07e7e115901c80f282b06ea6b86bc56b28e1a02b
The line end positions were not extracted correctly from G-code
imported into a stand-alone G-code viewer.
2021-10-18 15:46:23 +02:00
Lukáš Hejl
30d13c99b7 Added a missing include (GCC 11.1). 2021-09-21 22:41:55 +02:00
Vojtech Bubnik
ac7674b85a Fixed visualization of G-code lines in G-code viewer (3D view).
Improved speed of parsing external G-code.
2021-09-21 15:30:37 +02:00
Lukáš Hejl
ad65366ac7 Added fast_float library as a replacement for std::from_chars and strtod. 2021-09-11 00:54:30 +02:00
Vojtech Bubnik
771a892776 Optimization of GCodeProcessor for speed. 2021-09-07 11:18:12 +02:00
Lukáš Hejl
0bc77cef3e Fixed build on Linux and macOS that was failing because of using std::to_chars and std::from_chars with floating-point values.
The old version of GCC and Clang support only integers to be passed to std::to_chars and std::from_chars. macOS older version of Clang doesn't support std::from_chars at all. So for Linux and macOS, it was replaced std::from_chars with strtod and temporarily was replace std::to_chars with snprintf.
2021-09-07 07:43:17 +02:00
Vojtech Bubnik
dc72723911 Optimization of GCodeReader:
1) Use std::from_chars() instead of strtod()
2) Own implementation of buffered readline()
2021-09-03 16:21:45 +02:00
Vojtech Bubnik
9f9cbb46f9 Suppor of "No extrusion" firmware flavor by not emitting the E axis.
Fix of https://github.com/prusa3d/PrusaSlicer/issues/6023
The fix is partial: No extrusions are shown by the final G-code preview.
2021-08-09 17:37:35 +02:00
enricoturri1966
5faac3c105 Tech ENABLE_VALIDATE_CUSTOM_GCODE set as default 2021-07-22 09:13:12 +02:00
Lukas Matena
d2874f2e34 Fixed a memory leak during locales switching on macOS and
removed frequent locales switching during gcode processing
2021-06-05 07:09:23 +02:00
Lukas Matena
fef385cd6b Fixed second batch of locale-dependent calls 2021-05-24 12:20:29 +02:00
Vojtech Bubnik
d1cfdcb49e Refactoring of StaticPrintConfig & derived classes:
1) Using boost::preprocessor to reduce code duplicities when defining
   new configuration values.
2) Implemented static hash() and operator== on StaticPrintConfig derived
   classes to support hash tables of instances thereof.
2021-04-26 18:37:10 +02:00
enricoturri1966
86d7e1fb90 #5538 - Validation of custom g-code against gcode processor reserved keywords 2021-02-18 14:34:40 +01:00
enricoturri1966
f1d10f3c90 ENABLE_GCODE_VIEWER set as default in libslic3r 2020-11-12 14:03:58 +01:00
enricoturri1966
2f9dd9d9e8 Completed implementation of 'File->GCode preview...' command 2020-09-09 15:03:51 +02:00
enricoturri1966
16e282110d GCodeProcessor -> Load config data from gcode files generated by PrusaSlicer 2020-07-29 11:13:48 +02:00
bubnikv
046f0dbfa2 Fixed a regression issue to PrusaSlicer 2.1.1
Custom printer with center of bed at 0,0 results in "toolpath outside print area" #3510
The G92 A0 B0 was incorrectly considered to be equal to just G92
to reset all axes.
2020-03-21 10:09:33 +01:00
Vojtech Kral
d59fc1939b Fix a missing header in GCodeReader 2019-01-17 13:49:10 +01:00
bubnikv
0558b53493 WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
2018-09-19 11:02:24 +02:00