Commit Graph

17432 Commits

Author SHA1 Message Date
Lukas Matena
0b6fc0817f SendSystemInfo: Reworked internet connection check,
now we only do the check on Windows, see the comments
in the code for details.
2021-11-01 12:57:49 +01:00
Lukas Matena
3124892fae Fixed a tripping assert 2021-11-01 12:52:45 +01:00
enricoturri1966
2682915a5d #7211 - Fixed reset direction of view clipping not aligning cut surface correctly when viewed from Left or Right 2021-11-01 11:08:02 +01:00
enricoturri1966
4a2e991ffe Fixed build on non-Windows OSs 2021-11-01 08:46:37 +01:00
Yuri D'Elia
0074df9c74
Fix build on linux/clang 13 (#7203)
* Include missing headers

* Disambiguate nested template function for clang 13
2021-11-01 08:02:20 +01:00
Vojtech Bubnik
a94f1b332a Fixing the GCC/clang builds. MSVC is again non-conformant. 2021-10-30 14:00:23 +02:00
Vojtech Bubnik
d78a5acba9 Numerical improvements to Welzel minimum enclosing circle algorithm 2021-10-30 11:18:36 +02:00
Lukas Matena
a01ab28e4c Fixed encoding of gizmo entering/leaving undo redo snapshots,
which was broken by adding an extra TakeSnapshot overload in 41dc265
2021-10-29 21:47:47 +02:00
Vojtech Bubnik
5f84c504fc Support generator: Regression wrt. PrusaSlicer 2.3.3:
"with sheath" now again uses the lighweight zig-zag algorithm
for the sparse support columns, while PrusaSlicer 2.4.0-alpha1
to PrusaSlicer 2.4.0-beta1 used the new "stable" zig-zag
algorithm for both the non-sheathed and sheathed sparse support columns
creating unnecessarily thick support column perimeters.
2021-10-29 16:53:03 +02:00
Vojtech Bubnik
1ddd060982 New placeholder parser values for output file name template;
{num_objects} - number of printable objects on the plater.
{num_instances} - number of printable instances on the plater, adding up
  	all printable instances of all objects.
Implements #2735 #3339 #4607
2021-10-29 14:27:36 +02:00
Vojtech Bubnik
3216448bbc PlaceholderParser: implemented round(), digits() and zdigits() macros.
round() rounds to an integer.
This is a popular request, for example #3472

digits(value, num_digits, num_decimals) rounds to num_digits and
	num_decimals, left filled with spaces.
digits(value, num_digits) the same as digits(value, num_digits, 0)
    Neither decimal separator nor any decimals after decimal separator
    are emitted.
zdigits(...) is the same as digits(...) only left filled with zeros.
If the result does not fit num_digits, the result is never trimmed.
2021-10-29 13:36:26 +02:00
Vojtech Bubnik
0f145920d9 Fixed conditional G-code int(...), which did not accept an expression,
just a variable, constant or an expression enclosed in double braces (())
Mentioned for example in #3472
2021-10-29 10:45:33 +02:00
YuSanka
23ab9fb181 MSW DarkMode: Set mode colors for "Change volume type" dialog. 2021-10-29 08:46:29 +02:00
Vojtech Bubnik
b6c4e94d81 Fixing projection of bottom surfaces in MM segmentation and for
support blockers / enforcers.

All slicing functions shall produce consistent results with the same mesh, same transformation matrix and slicing parameters.
Namely, slice_mesh_slabs() shall produce consistent results with slice_mesh() and slice_mesh_ex() in the sense, that projections made by
slice_mesh_slabs() shall fall onto slicing planes produced by slice_mesh().

Before this commit, slice_mesh_slabs() projected bottom facing faces upwards to its coplanar slicing plane,
which is different from how slice_mesh() or slice_mesh_ex() work, leading to ignored support enforcer / blocker strokes.
2021-10-28 15:07:29 +02:00
Vojtech Bubnik
93e91bcacb Fixing compilation on GCC 2021-10-27 17:36:47 +02:00
Vojtech Bubnik
bc1737c0da Yet another bugfix for gcc where MSVC was happy with non-conformant code 2021-10-27 16:16:49 +02:00
Vojtech Bubnik
ad2dfe345d Fixed typo in an unused template code, where MSVC does not complain,
but GCC does.
2021-10-27 16:07:23 +02:00
Vojtech Bubnik
e87f90af9f Fixed typo in CMake 2021-10-27 16:04:58 +02:00
Vojtech Bubnik
cf7b6fb19a Extracted MedialAxis code from Geometry.cpp/hpp, moved to its own
files to Geometry/
Moved other Voronoi files to Geometry/
2021-10-27 16:03:04 +02:00
Vojtech Bubnik
497905406b New code for minimum enclosing circle by randomized Welzl algorithm.
Split the circle code from Geometry.cpp/hpp to Geometry/Circle.cpp,hpp
2021-10-27 15:12:29 +02:00
enricoturri1966
77548df00f Fixed missing sinking property in objects list for multipart objects with a part completely below the printbed 2021-10-27 14:33:02 +02:00
enricoturri1966
3f669e70b9 #7160 - Fixed drag object on mouse move cause wrong color when outside the print area 2021-10-27 10:37:35 +02:00
tamasmeszaros
f309cf3aa9 Merge branch 'tm_levitating_supports_in_interior' 2021-10-27 10:05:33 +02:00
tamasmeszaros
d57cfa981e Construct supports using the trimmed mesh. To solve issues with supports within the cavity hanging in the air. This still doesn't solve the issue with undrilled holes.
To solve issues with supports within the cavity hanging in the air. This still doesn't solve the issue with undrilled holes.
2021-10-27 10:05:09 +02:00
enricoturri1966
145f0489b8 Fixed crash when a part of a multipart object is completely below the printbed 2021-10-27 08:56:10 +02:00
Mark Choi
9a4863a14b Translate error. 2021-10-26 18:31:12 +02:00
YuSanka
e5b51a654d Follow-up to 0c29eb9943
Next code refactoring: m_support_material_overhangs_queried have to be initialized from outside just once
2021-10-26 16:36:07 +02:00
Vojtech Bubnik
ea56f00a31 Fixing handling of project "saved" timestamp on Undo / Redo stack. 2021-10-26 16:30:41 +02:00
Vojtech Bubnik
cd13af59f4 Follow-up to 79eb59b9f2
Fix of #7168: Crash when layer count exceeds 4095
This time the crash was fixed for top / bottom propagation of
multi-material segmentation.
2021-10-26 16:21:07 +02:00
YuSanka
ef0dae8c97 Implemented possibility to apply conversion from inches/meters to mm for all loaded objects at once
+ Added MessageWithCheckBox dialog
+ some code refactoring for MessageDlg
2021-10-26 14:52:45 +02:00
rtyr
fe748ca43b
1.4.0-beta1 Sync with PrusaSlicer-settings 2021-10-26 13:38:49 +02:00
Vojtech Bubnik
28de7f5504 Support generator: Merging of bottom contacts with top contacts and
interface layers if possible. This should always be possible with
soluble supports and it should have been done long time ago.
For non-soluble supports, it may or may not be possible to merge
these layers: They will only be merged if they are extruded without
bridging and with the same layer height.
Fixes Support enforcer interfaces not generated as needed. #6784
or at least some of the issues reported.

Experimental: Added experimental filtering of propagated support columns
to two extrusions, overlapping by maximum 20%.
This filtering step will remove spurious columns that do not support
anything, but the filtering step may remove supports supporting tiny
islands. Those supports would likely not be printable anyways without
the user intervention (extending the supported area by painting).
2021-10-26 12:09:46 +02:00
Vojtech Bubnik
4d2017188d Updated GLEW to 2.2.0 2021-10-26 10:03:41 +02:00
Vojtech Bubnik
00c444f8c8 Tiny optimization of slice_mesh_slabs() with mirrored objects. 2021-10-26 10:03:41 +02:00
Lukas Matena
79eb59b9f2 Fix of #7168: Crash when layer count exceeds 4095 2021-10-26 09:56:49 +02:00
enricoturri1966
e1b3ba063b Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS - Printbed collision detection made cheaper for rectangular beds and faster for circular beds 2021-10-26 08:45:21 +02:00
YuSanka
054dd569af MSW Dark mode: Set mode colors for RichToolTips 2021-10-26 08:28:03 +02:00
YuSanka
0c29eb9943 Follow up e2475c9576 = code refactoring 2021-10-25 16:55:02 +02:00
YuSanka
0836fbb453 Allow to enter empty value for "G-code thumbnails" option 2021-10-25 16:28:08 +02:00
Lukáš Hejl
3d87904e66 Fixed the bottom layer of multi-material painted objects sunken below the print bed (#7107). 2021-10-25 14:59:05 +02:00
enricoturri1966
7c00905ec7 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-10-25 14:47:22 +02:00
enricoturri1966
014bef382a #6999 - Fixed variable layer height editing not working when raft layers > 0 2021-10-25 14:47:13 +02:00
YuSanka
e2475c9576 Workaround for #6814 2021-10-25 14:45:03 +02:00
YuSanka
038459b083 ConfigWizard: Added missed Refresh() 2021-10-25 13:59:22 +02:00
enricoturri1966
19387186a5 #7110 - Fixed calculation of estimated times for layers 2021-10-25 12:31:19 +02:00
Vojtech Bubnik
743b99d22c Unit tests to the new optimized implementation of
Line::parallel_to() a Line::perpendicular_to().
2021-10-25 12:03:44 +02:00
enricoturri1966
dcbb3bef45 Fixed crash in bed collision detection when there are sinking toolpaths 2021-10-25 09:57:51 +02:00
Lukáš Hejl
10f24119d0 Fixed the propagation of painted top and bottom layers for mirrored objects in multi-material segmentation. 2021-10-25 08:43:30 +02:00
Lukáš Hejl
0f9a9de745 Fixed darker colors of objects inside multi-material gizmo when objects are mirrored. 2021-10-25 08:41:41 +02:00
Vojtech Bubnik
9651ff19ef Fix of [prusa3d/PrusaSlicer] Typo in Keyboard Shortcuts (Issue #7161) 2021-10-24 11:12:15 +02:00