23484 Commits

Author SHA1 Message Date
Vojtech Bubnik
a0441dac14 ArcWelder:
Reducing the chance of creating segments shorter than G-code quantization
distance.
Improving fitting by non-linear least squares.
2023-10-02 09:59:06 +02:00
tamasmeszaros
11893ed0c1 Don't build static map tests as they fail on multiple platforms 2023-10-02 09:43:24 +02:00
Martin Šach
5e8a1ffd38 Split check_stability into multiple functions.
In the SupportSpotsGenerator the function check_stability got out
of hand. It is refactored into multiple smaller functions.
2023-09-29 12:44:19 +02:00
Martin Šach
26fbf6e111 Refactor out reckon_new_support_point
In support spots generator, reckon_new_support_point was lamda with
many captures. This led to confusion. Now it is a proper function.
2023-09-29 12:44:19 +02:00
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
YuSanka
0027d4c5f1 SearchDialog: Fixed memory leak. 2023-09-27 12:41:19 +02: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
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
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
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
rtyr
18e5c81c10
Sync with PrusaSlicer-settings 2023-09-21 11:12:22 +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
rtyr
7756b62a2d
Added thumbnails for XL2, XL5 and MK3SMMU3 2023-09-21 11:04:42 +02:00
YuSanka
0371dc7d41 Partially revert of d327a6b2
It looks like CallAfter is no needed any more
2023-09-21 10:41:50 +02:00
YuSanka
a9eebb27f8 Code cleaning: Deleted code which was commented till the testing some time ago 2023-09-21 10:22:32 +02:00
YuSanka
a05a4f2a5d Localization: Updated POT 2023-09-20 12:34:09 +02:00
Lukas Matena
95e084565a Updated tooltip on thumbnails 2023-09-20 12:10:49 +02:00
Lukas Matena
4694f2444e Updated some phrases 2023-09-20 10:44:44 +02:00
YuSanka
efa2547a4f Thumbnails: Fix for SPE-1895 : SLA crash when export .sl1 / .sl1s files 2023-09-20 09:53:09 +02:00
YuSanka
38a4c341d5 EditGCodeDialog: Added info line with link to helper 2023-09-19 15:59:08 +02:00
Vojtech Bubnik
9824d0e4cc ArcWelder: Hot fix for producing extremely short arches, that get
quantized to zero length by the G-code export.
2023-09-19 13:56:53 +02:00
YuSanka
361ef22b6d EditGCodeDialog: Fixed Linux specific crash on Destroy()
+ Improved cursor position in custom G-code after a paste of placeholder
2023-09-19 12:38:31 +02:00
rtyr
0d734e7bb5
Added MK3.9, MINI IS. Enabled arc fitting and binary for MINI. 2023-09-19 10:36:42 +02:00
tamasmeszaros
c1e21bad08 Sync master branch 2023-09-19 10:15:57 +02:00