23675 Commits

Author SHA1 Message Date
Martin Šach
83b0a00bc1 Fix missing includes.
On linux missing includes in LabelObjects.hpp caused compilation error.
2023-09-29 12:39:55 +02:00
tamasmeszaros
23b041e222 Add StaticSet and StaticMap to allow global constant dictionaries 2023-09-29 11:58:05 +02:00
Vojtech Bubnik
42e7dac1ca Arc fitting with linear (not very useful) and non-linear least squares. 2023-09-28 12:14:01 +02:00
Filip Sykala - NTB T15p
bd680e0206 Merge branch 'master' into fs_svg_SPE-1517 2023-09-27 14:37:07 +02:00
Filip Sykala - NTB T15p
211146e5de Fix calculation of up vector angle. 2023-09-27 14:37:00 +02:00
YuSanka
0027d4c5f1 SearchDialog: Fixed memory leak. 2023-09-27 12:41:19 +02:00
Filip Sykala - NTB T15p
4ea9a250ba Merge branch 'master' into fs_svg_SPE-1517 2023-09-27 10:08:33 +02:00
mario
d7975fb8aa Added new printer profile 2023-09-26 10:24:26 -07:00
Martin Šach
003232dfb6 Add tests for SupportSpotsGenerator::ObjectPart construction.
Ensuring that ObjectParts in SupportSpotsGenerator are properly
generated from slice is crucial for any further computations.
2023-09-26 16:11:19 +02:00
Martin Šach
13579fff45 Move definitons to header in the SupportSpotsGenerator.
Moving the definitions to a header file will enable testing the
functions involved.
2023-09-26 16:11:19 +02:00
Martin Šach
ea69deef24 Use exact intergral in SupportSpotsGenerator.
Previously a numerical integration for ObjectPart was performed.
Now it is calculated exactly over triangles. The code has
also been refactored to enable unit testing.
2023-09-26 16:11:19 +02:00
Filip Sykala - NTB T15p
2aafec0576 Merge branch 'master' into fs_svg_SPE-1517 2023-09-26 15:06:56 +02:00
Filip Sykala - NTB T15p
405de99336 Remember last used directory for svg per Slicer run. 2023-09-26 14:59:52 +02:00
Lukas Matena
11273b29ac Fixed compiler warnings 2023-09-26 14:24:23 +02:00
Martin Šach
cf44ad22fe Use size_t instead of int for index.
The functions estamate_points_properties used some ints to manipulate
indexes that led to compiler warrnings.
2023-09-26 13:47:49 +02:00
Filip Sykala - NTB T15p
5da14c491e Merge branch 'master' into fs_svg_SPE-1517 2023-09-26 13:34:28 +02:00
Filip Sykala - NTB T15p
7d2038eefb Fix rotation of mirrored volume(object)
Text + SVG
Issue SPE-1924
2023-09-26 13:34:12 +02:00
Lukas Matena
9e3b9e43e3 Merge branch 'lm_cancel_object' 2023-09-26 11:24:29 +02:00
Lukas Matena
f599ddca8f Label objects: use non-convex projection if it only contains one (Ex)Polygon, remove unused code, tidy includes 2023-09-26 11:24:19 +02:00
Lukas Matena
501cfb64f9 Label objects: integrating the recently merged PR:
- code from @jschuh's functions moved into respective functions in LabelObjects class
- name no longer contains object_id, instance_id is newly 1-based
- replacing banned characters using std::replace_if
2023-09-26 11:24:19 +02:00
Justin Schuh
e659e96b04 Support Klipper exclude_objects feature (PR #10618):
comment by @lukasmatena: The functions are not called anywhere because of how I resolved conflicts. I will integrate the functions into current PrusaSlicer in the next commit.
2023-09-26 11:24:19 +02:00
Lukas Matena
6016c6b021 Label objects: more refactoring (name composed only once) 2023-09-26 11:24:19 +02:00
Lukas Matena
fe3cf27394 Label objects: refactoring + fix of object/instance indexing when instances are rotated/out-of-bed 2023-09-26 11:24:19 +02:00
Lukas Matena
387376fb25 LabelObjects: Fixed a typo 2023-09-26 11:24:19 +02:00
Lukas Matena
37dc3378ec Label objects: List of objects moved before custom start gcode, quotes added for M486 A on RRF 2023-09-26 11:24:18 +02:00
Lukas Matena
ef31e4f487 LabelObjects: differentiate based on firmware flavor, change M486 N to M486 A 2023-09-26 11:24:18 +02:00
Lukas Matena
395a5639cc Label objects: rename Marlin -> Firmware-specific, updated tooltip 2023-09-26 11:24:18 +02:00
Lukas Matena
5d50a91c30 Label objects refactoring (enum->enum class, initial header export separated in a dedicated function) 2023-09-26 11:24:18 +02:00
Lukas Matena
6d41a76af7 M486 cancel object implementation:
- gcode_label_objects changed from coBool to coEnum
- the start-end pairs are emitted at the start for all objects
2023-09-26 11:24:18 +02:00
Lukas Matena
c968b797ed Follow-up to c8263d1: do the same change for XL temp notifications 2023-09-26 11:20:35 +02:00
YuSanka
fd7d7e1ae5 SubstitutionManager: Follow-up 2b25f55f8 - Fixed a crash.
(Added missed cleaning of the m_chb_match_single_lines on Delete All substitutions)

+ Added missed Layout on add substitution

+ EditGCodeDialog: Deleted unused code caused compilation warning.
2023-09-25 15:00:27 +02:00
rtyr
fc03b9f36c
Updated compatible printer condition for some filament profiles. 2023-09-25 11:02:34 +02:00
Martin Šach
0a4766e8d3 Fix linux compiling issue.
Just add .template to the right place.
2023-09-22 14:41:04 +02:00
Martin Šach
d9d0ed293e Improve curvature calculation.
Fix authored by Pavel Mikus.
2023-09-22 13:30:05 +02:00
Martin Šach
6164051d60 Use proper formula for second moment of area.
SupportSpotsGenerator originally used a heuristic formula. Current
formula is properly derived using known properties of
second moment of area. Several tests of this formula are added.
2023-09-22 13:30:05 +02:00
Vojtech Bubnik
d623ece5da Least squares circle fitting. 2023-09-22 13:22:23 +02:00
Filip Sykala - NTB T15p
7e8594069b Merge branch 'master' into fs_svg_SPE-1517 2023-09-22 11:01:03 +02:00
Filip Sykala - NTB T15p
f6cbf1892b Fix issue SPE-1911 2023-09-22 11:00:28 +02:00
rtyr
9d13b39736
Added new print profiles for MINI IS. Updated MK4IS profiles. 2023-09-22 10:40:43 +02:00
YuSanka
bbd47f0e16 Fix for SPE-1918 : Modificators will be shows after undo(CTRL+Z) with seam/support painting gizmo. 2023-09-22 10:04:58 +02:00
rtyr
a5a40fe38f
Removed invalid compatible_print condition. 2023-09-21 17:29:08 +02:00
Filip Sykala - NTB T15p
d199081636 Fix changing of file 2023-09-21 14:11:27 +02:00
Filip Sykala - NTB T15p
4e4c3a4331 Fix rotation of SVG object by slider 2023-09-21 13:47:26 +02:00
Filip Sykala - NTB T15p
99fb3fa51e Mirror do not change scale for svg object 2023-09-21 13:42:45 +02:00
Filip Sykala - NTB T15p
0e33633fca Merge branch 'master' into fs_svg_SPE-1517 2023-09-21 11:19:53 +02:00
Filip Sykala - NTB T15p
891047e78f Add different size limits for inch 2023-09-21 11:16:53 +02:00
rtyr
18e5c81c10
Sync with PrusaSlicer-settings 2023-09-21 11:12:22 +02:00
Filip Sykala - NTB T15p
0bd83f4f41 Set limits for size ratio scale 2023-09-21 11:11:49 +02:00
rtyr
b4270f70fe
Photon MONO X 6K thumbnail 2023-09-21 11:11:42 +02:00
rtyr
a2a11fe686
Sync with PrusaSlicer-settings 2023-09-21 11:08:36 +02:00