Commit Graph

22282 Commits

Author SHA1 Message Date
Vojtech Bubnik
e46891fa8c PlaceholderParser: Fixed compilation issues, added integration test
with FDM slicing process.
2023-03-23 09:23:20 +01:00
Vojtech Bubnik
c28585ab7f WIP PlaceholderParser: Support for local and global variables.
Implements #4048 #7196

Syntax:

(global|local) variable_name =
	(scalar_expression|vector_variable|array_expr|initializer_list)

array_expr := array(repeat, value)
initializer_list := (value, value, value, ...)

The type of the newly created variable is defined by the type
of the right hand side intitializer.

Newly declared variable must not override an existing variable.
Variable may be assigned with global|local expression, but its type
must not be changed.

Newly the assignment operator also accepts the same right hand expressions
as the global|local variable definition.
2023-03-22 17:46:57 +01:00
Vojtech Bubnik
963ca415d4 PlaceholderParser: new interpolate_table() "function"
interpolate_table(x, (x0, y0), (x1, y1), (x2, y2), ...)
interpolates a table at position x.
2023-03-22 17:46:57 +01:00
Filip Sykala - NTB T15p
c5b43107ba Merge branch 'fs_emboss_Fix_fontpath' 2023-03-22 13:46:26 +01:00
Filip Sykala - NTB T15p
0a3db4525d Fix suggested by Stefan Csomor<csomor@advancedconcepts.ch> for releasing MacOs references.
link: https://groups.google.com/g/wx-users/c/f2nVyT59H6M/m/_BocNmwCAgAJ
2023-03-22 13:46:10 +01:00
Pavel Mikus
fbcc1ab276 Fix SPE-1595 - crash when no bridgin surfaces present and adaptive fill selected 2023-03-22 13:23:07 +01:00
Filip Sykala - NTB T15p
ac5633841b Merge branch 'master' into fs_emboss 2023-03-21 13:19:53 +01:00
rtyr
4326929960
Updated output filename format. 2023-03-21 12:36:23 +01:00
Filip Sykala - NTB T15p
59f14be1a8 Merge branch 'master' into fs_emboss 2023-03-21 12:11:31 +01:00
Filip Sykala - NTB T15p
ae016aceb9 Fix for selection of unknodn font 2023-03-21 12:11:09 +01:00
Pavel Mikus
ff5767b6f5 enable AABB tree over 3D lines 2023-03-20 20:01:37 +01:00
Filip Sykala - NTB T15p
a60bf51ce4 Merge branch 'master' into fs_emboss 2023-03-20 17:42:05 +01:00
Filip Sykala - NTB T15p
9c70ed01e5 Fix add emboss volume on reflected 2023-03-20 17:41:51 +01:00
Filip Sykala - NTB T15p
d653cc6ab5 Fix crash made on MMU printers 2023-03-20 16:10:13 +01:00
Vojtech Bubnik
7afabcde95 PlaceholderParser: Implemented one_of() matching function:
1st parameter is the text to match against,
the rest of the parameters are pattern to be matched:
either strings, then the match is exact,
or regex enclosed in //
or regex string starting with ~

For example
one_of("a", "a", "b")
	finds a in "a", "b"
one_of("abc", /.*a.*/)
	matches "abc" using regular expression /.*a.*/
2023-03-20 15:55:18 +01:00
Filip Sykala - NTB T15p
d24472675c Keep color of object during drag over surface. 2023-03-20 15:33:00 +01:00
Filip Sykala - NTB T15p
201e9d493f Remove side effects from setter for enable picking. 2023-03-20 15:32:21 +01:00
Filip Sykala - NTB T15p
ab30d37c3c Merge branch 'master' into fs_emboss 2023-03-20 13:45:55 +01:00
Filip Sykala - NTB T15p
5ab9532e39 Fix bad actualization without mesh source sorting 2023-03-20 13:45:41 +01:00
Vojtech Bubnik
d152b67ce5 PlaceholderParser: Simplified the parser after introducing
the writable variables.
2023-03-20 10:25:52 +01:00
Vojtech Bubnik
b9d8fe7118 WIP: PlaceholderParser support for writable output variables. 2023-03-20 07:48:38 +01:00
YuSanka
39bca4420c Fix for #10072 - Split to objects is acting funky 2023-03-17 17:14:32 +01:00
PavelMikus
79adb72a25 Fix int overflow, reduces amount of bridging substantially, improve code description,
extend bridge anchors when anchoring to solid surfaces on lower layers
2023-03-17 17:15:07 +01:00
rtyr
16024b12c5
Update Anker.idx 2023-03-17 15:51:51 +01:00
rtyr
d4d463bc28
Official AnkerMake profiles. 2023-03-17 15:48:36 +01:00
rtyr
520148a8aa
Added new AnkerMake resources 2023-03-17 15:48:06 +01:00
PavelMikus
b61a6f293d fix problem with missing lslice Links - detection could occasionally fail, issue 9744 2023-03-17 12:58:29 +01:00
David Kocik
147eee05a6 Merge branch 'dk_miniz' 2023-03-17 11:10:21 +01:00
David Kocik
d5f229a249 Refactoring of miniz extract calls. Use file_index instead of filename as identifier. 2023-03-17 11:08:49 +01:00
Filip Sykala - NTB T15p
19d02e6d74 Fix:
../src/slic3r/GUI/IconManager.cpp:174:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../src/slic3r/GUI/SurfaceDrag.cpp:104:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Slic3r::GLVolume*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
../src/slic3r/GUI/SurfaceDrag.cpp:57:30: warning: 'std::optional<double> Slic3r::GUI::calc_scale(const Matrix3d&, const Matrix3d&, const Vec3d&)' defined but not used [-Wunused-function]
../src/slic3r/Utils/RaycastManager.cpp:14:56: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
../src/slic3r/Utils/RaycastManager.cpp:316:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Slic3r::GLVolume*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2023-03-17 09:41:48 +01:00
Filip Sykala - NTB T15p
bc825ec7d7 Merge branch 'master' into fs_emboss 2023-03-17 08:30:09 +01:00
rtyr
c878bbd826
Updated compatible conditions for some filament profiles. 2023-03-16 16:44:51 +01:00
PavelMikus
8ed8adfd3d Fix anchoring over sparse infill bug causing overextrusion when stacking thick bridges onto each other 2023-03-16 14:56:07 +01:00
David Kocik
765719d424 Merge branch 'dk_dupl_zip' 2023-03-16 13:12:08 +01:00
David Kocik
b8a479ea9a Get file size from Archive dialog, so correct file is opened. 2023-03-16 13:05:15 +01:00
David Kocik
c06816212d Duplicities in zip file. Show warning. Small refactoring. 2023-03-16 12:59:39 +01:00
David Kocik
7a14406902 Missing overrides in PrusaConnect class. 2023-03-16 12:02:27 +01:00
PavelMikus
96cdcf72d3 Fix disable fan for first x layers not working correctly.
Co-authored-by: Justin Schuh (@justinschuh)
2023-03-16 09:43:19 +01:00
rtyr
b463b3148d
Sync with PrusaSlicer-settings. Added XL. 2023-03-15 20:51:59 +01:00
rtyr
379c6366de
XL resources 2023-03-15 20:51:09 +01:00
Vojtech Bubnik
66abc34e88 Fixed wrong direction of bridges after "ensure vertical wall thickness"
rework. Fixes SPE-1598
2023-03-15 18:51:04 +01:00
PavelMikus
5277ed502d improve anchoring on lower layer solids, cut the expanded bridge strictly, which hopefully fixes tests 2023-03-15 16:13:06 +01:00
PavelMikus
46a558129d improve translation descriptions in support alerts 2023-03-15 14:12:54 +01:00
PavelMikus
f65c0b2600 Rewrite missing supports alert message, now it should be translation-friendly 2023-03-15 13:16:42 +01:00
Filip Sykala - NTB T15p
ca5b310e43 Fix: moving with text object(not volume) over build plate by canvas dragging 2023-03-15 11:30:41 +01:00
Filip Sykala - NTB T15p
f331bb5edf Merge branch 'master' into fs_emboss 2023-03-15 10:15:46 +01:00
Vojtech Bubnik
c585aaa1cb TriangleMeshSlicer.cpp: Fixed compilation of debug output 2023-03-14 19:33:24 +01:00
Vojtech Bubnik
f2f9b89096 Fix of #9963 Bridge angle not accept degree but rad
Fixes SPE-1583
2023-03-14 19:32:27 +01:00
PavelMikus
eb73bf7f24 Bridging over sparse infill - improve coliding regions merging, smoothen results, dissolve tiny ensuring regions around bridging 2023-03-14 16:40:55 +01:00
PavelMikus
c6fd339a39 remove cracks in boundary surface via closing - without it, the bridges were sometimes cut in half 2023-03-14 12:08:28 +01:00