12 Commits

Author SHA1 Message Date
supermerill
f087cf1239 Merge remote-tracking branch 'remotes/prusa/master'
seems to work
need to update profiles & ui
2020-03-26 12:10:30 +01:00
bubnikv
43f2171446 Partial fix of v2.2.0 alpha2 Unhandled exception - extrusion width #3482
Exceptions thrown by Flow calculation were made explicit classes derived
from std::invalid_argument.

The PresetHints::recommended_thin_wall_thickness() newly catches these
exceptions and it shows the reason of why the hint is invalid.
2020-02-18 12:26:56 +01:00
tamasmeszaros
a66dcf58f7 Fix for failing build without PCH 2020-02-05 09:57:22 +01:00
bubnikv
059bdb4711 Implemented handling of complex ConfigOptionFloatOrPercent chains
by the PlaceholderParser.

Namely, all the options with the "ratio_over" reference are now handled
correctly by the PlaceholderParser with the exception
of the "first_layer_extrusion_width", which overrides speed of extrusions
by their respective extrusion type.

Also the various extrusion widths (extrusion_width, first_layer_extrusion_width,
external_perimeter_extrusion_width etc.) produce the same numbers
as if ran through the back-end, with the assumption of not overriding
layer height by the variable layer height editing tool or layer height
modifiers.
2020-02-04 15:27:38 +01:00
bubnikv
98e49772ed Custom G-code references are now being assigned to ToolOrdering::LayerTools()
and the superfluous M600 (color change) events are filtered out there.

Fixed a handful of compiler warnings.
2020-01-14 11:54:09 +01:00
supermerill
43c13a8168 1) change only_one_perimeter_top to respect external_infill_margin. Old behavior can be reproduced by setting external_infill_margin to 0
2) change first_layer_height from % of layer_height to % of the diameter of the nozzle of the first extruder. It's safer and more logical that way.
2019-11-18 13:20:26 +01:00
supermerill
6064dfe2c7 Update on the spacing of perimeters.
#113
2019-11-02 02:28:54 +01:00
supermerill
ccc05c08fd Merge commit '85d9a165636617c76d30be54a1cd99bd4e5663b0' 2019-08-28 23:03:09 +02:00
bubnikv
74e592ceaa Improved handling of excessive extrusion width values (too small
or too big).
Fixes std: bad_alloc #2715
2019-08-06 15:11:46 +02:00
supermerill
16368c9575 Add some cpp test from mainline (thanks to @lordofhyphens)
* to build the tests on windows, you need vs2015 or 2017 with "CRT SDK"
so  you have to also build all deps & slic3r against this compiler.
 * I didn't tried to build the tests on linux/osx, maybe some cmkae changes are needed.
 * I added a slic3r_lib project to be able to link statically the test against all the slic3r project.
 * tests will need many changes to be able to use the new codebase. only the ones in the cmakelists are done right now.
 * some test may be in error, because the behavior of the test vs slic3r isn't defined well enough to make a decision of which one is wrong.
2019-03-29 18:02:25 +01:00
supermerill
aab7dd32f3 settings with width% is from nozzle instead of layer height. 2019-02-11 12:18:06 +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