5832 Commits

Author SHA1 Message Date
YuSanka
19f2a1d9e9 Unified usage of localization macros in slic3r/libslic3r 2023-03-23 22:55:38 +01:00
Vojtech Bubnik
9cb50e6586 PlaceholderParser: added size() and empty() functions over vector variables. 2023-03-23 17:51:37 +01:00
Vojtech Bubnik
929a0eba2c PlaceholderParser: replaced the new "array" operator with "repeat",
simplified the parser a bit more.
2023-03-23 17:08:56 +01:00
Vojtech Bubnik
3045884640 PlaceholderParser: Reduced code duplicity. 2023-03-23 15:00:45 +01:00
Lukas Matena
6170783f7c Wipe tower: Increased maximum of wipe_tower_extra_spacing to 300 % 2023-03-23 12:46:38 +01:00
Lukas Matena
64cf357907 Wipe tower: fix the cone in combination with 'no_sparse_layers' 2023-03-23 12:44:42 +01:00
Lukas Matena
b20325671a Wipe tower: added the stabilization cone into configuration 2023-03-23 12:44:42 +01:00
Lukas Matena
26ba74fad0 Wipe tower: stabilization cone bottom infill 2023-03-23 12:44:42 +01:00
Lukas Matena
571b133791 Wipe tower: stabilization cone 2023-03-23 12:44:42 +01:00
Lukas Matena
cd70954758 Wipe tower: added an option to change spacing of the lines 2023-03-23 12:44:42 +01:00
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
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
59f14be1a8 Merge branch 'master' into fs_emboss 2023-03-21 12:11:31 +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
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
ab30d37c3c Merge branch 'master' into fs_emboss 2023-03-20 13:45:55 +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
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
PavelMikus
b61a6f293d fix problem with missing lslice Links - detection could occasionally fail, issue 9744 2023-03-17 12:58:29 +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
bc825ec7d7 Merge branch 'master' into fs_emboss 2023-03-17 08:30:09 +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
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
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
PavelMikus
257837c071 Fix one and zero perimeter case - no bridging was generated 2023-03-14 12:08:28 +01:00
PavelMikus
4af37ca4a5 fix bug - layer id is not same as layer idx, because of raft (super confusing) 2023-03-14 12:08:28 +01:00
PavelMikus
822ea84e0d Fix lambda having modify access - not needed 2023-03-14 12:08:28 +01:00
PavelMikus
12f1cd0bc0 added semi support for lightning infill 2023-03-14 12:08:28 +01:00
PavelMikus
487d9209ed Fix and improve region filtering 2023-03-14 12:08:28 +01:00
PavelMikus
76209d89ff Fixed lighting infill crash.
TODO filtering of small ensuring regions
2023-03-14 12:08:28 +01:00
PavelMikus
d223eef38d Do not generate other than sparse infill lines
Split jobs if candidates bounding boxes do not overlap - otherwise it can become completely linearized and very slow
Improve formatting
2023-03-14 12:08:28 +01:00
PavelMikus
ad693532d3 Fixed clustering for threads issue - inverse comparison, lower job idx incorrectly initialized 2023-03-14 12:08:28 +01:00
PavelMikus
3782d24ccf Fixed bugs with bridging area determination 2023-03-14 12:08:28 +01:00
PavelMikus
f8e7d1b01c core implemented, now fixing the issues 2023-03-14 12:08:28 +01:00
PavelMikus
f4e44f9750 rework of bridiging over sparse infill in progress 2023-03-14 12:08:28 +01:00
Lukas Matena
993d6bd561 Fixed a hang in tree supports, caused by integer overflow on coord_t. Fixes #10048 2023-03-14 11:11:51 +01:00
Lukas Matena
f6445eefe3 Fix a memory leak in placeholder parser 2023-03-10 11:49:53 +01:00