YuSanka
4b5cf004bd
MSW specific: Fixed rescaling for the BitmapComboBox control and Notebook tab buttons
2021-07-19 12:36:14 +02:00
enricoturri1966
558336f325
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
2021-07-19 11:37:32 +02:00
enricoturri1966
75a2d7620b
Removed striped shading for sinking objects
2021-07-19 11:37:18 +02:00
Lukáš Hejl
5405ab1986
Optimized seed fill and bucket fill selection to recompute selection only in case the cursor is pointing on a non-selected triangle.
2021-07-19 11:30:40 +02:00
Lukáš Hejl
5b67fafb75
Fixed a crash in the multi-material gizmo when bucket fill is selected.
2021-07-19 11:30:35 +02:00
enricoturri1966
ccf67793bd
Fixed typo introduced with 2848ae9c4d
2021-07-19 11:21:26 +02:00
enricoturri1966
2848ae9c4d
Colors in GLVolume defined as std::array<float, 4>
2021-07-19 11:11:49 +02:00
Filip Sykala
c444ef81bd
Fix status function
2021-07-19 10:12:19 +02:00
Filip Sykala
709ea1283e
FIX: new imgui change input float
2021-07-19 09:50:45 +02:00
Filip Sykala
86a3fd00a5
Merge branch 'master' into fs_QuadricEdgeCollapse
2021-07-19 09:18:55 +02:00
Filip Sykala
af526c54f4
Add simplification GUI
2021-07-19 09:17:50 +02:00
Justin Schuh
21abf8d88e
Fix bucket/seed fill tooltips ( #6720 )
2021-07-19 07:56:50 +02:00
enricoturri1966
bf7b554235
Disable reload from disk for built-in objects
2021-07-16 12:30:47 +02:00
Lukáš Hejl
b6b52fee73
Fixed an issue when the object in the multi-material gizmo had the wrong default color when the multi-material gizmo was first time opened after loading a painted 3MF file with different extruders colors than in the printer profile in Slicer.
2021-07-16 11:39:50 +02:00
enricoturri1966
beb60b5138
Follow-up of ef8ddacdfc
-> Fixed rendering of modifiers after cleaning current selection
2021-07-16 10:56:29 +02:00
enricoturri1966
afa4776ead
Follow-up of 1a64abac96
-> Keep modifiers original size and do not reposition them when using load command
2021-07-16 10:03:35 +02:00
Lukáš Hejl
51b94f4747
Added the bucket fill tool into the multi-material gizmo. Also, the multi-material gizmo was reworked to show only options applicable for a chosen painting tool.
2021-07-16 09:19:40 +02:00
YuSanka
977ffe556d
ConfigWizard: Fixed a bug in update of the selected presets
...
(probably related to #6436 - Cannot add SLA materials)
2021-07-15 14:54:22 +02:00
Lukas Matena
433ae80d9c
Updated our list of changes in imgui
2021-07-15 14:45:10 +02:00
Lukas Matena
b71d787f69
ImGui keyboard input fields are now locale-sensitive
2021-07-15 13:38:57 +02:00
Lukas Matena
b8c949ea71
Added a new source file from the new imgui
2021-07-15 13:28:01 +02:00
Lukas Matena
9244e2ae32
Changes forced by imgui upgrade, updated imgui readme and
...
updated ImGuiWrapper::selectable function (It was a copy of ImGui::Selectable
with slight changes. The function was changed a lot in ImGui 1.83, I copied
the new version and reapplied the changes.)
2021-07-15 13:17:48 +02:00
Lukas Matena
935675a35a
Committed our own changes in ImGUI, see commits
...
042880ba2d
67c55c7490
a94c952b40
b3f8ae5ca7
2455df4017
3ca3a544a8
870aba8d15
62c2095fe8
This should contain exactly the same changes.
2021-07-15 13:17:48 +02:00
Lukas Matena
63dfb8f5f2
Upgraded to ImGUI 1.83
2021-07-15 13:17:48 +02:00
enricoturri1966
2f24971601
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
2021-07-15 11:44:48 +02:00
enricoturri1966
1a64abac96
Changes in loading of modifiers from file and their positioning
2021-07-15 11:44:35 +02:00
YuSanka
f7dcc88831
Fixed a bug - Dependencies for Printer presets doesn't update after preset selection
2021-07-15 11:37:59 +02:00
YuSanka
b921c8b276
Added gallery to the default shapes
...
+ ObjectList (MSW specific): Don't change background color for Light color mode
2021-07-15 10:52:37 +02:00
Lukas Matena
8c23678fa0
Limited brim width to 200 mm (larger values make slicer hang or crash due to arithmetic overflow)
2021-07-15 09:55:25 +02:00
Lukas Matena
b5fea72618
Speed-up of painted seams
2021-07-15 09:49:36 +02:00
YuSanka
0220ae4ce5
Fixed a crash when "resources/shapes" directory doesn't exist.
...
+ Localization for the "Internal error: %1%" in generic_exception_handle()
2021-07-15 09:04:12 +02:00
Vojtech Bubnik
d7205c9461
Let's hope that the std::exception::what() returns either a 7-bit
...
string or an UTF-8 string. Let's convert it to wxString before
showing an error message box.
boost::system shall return UTF-8 localized error messages as long
as we set -DBOOST_SYSTEM_USE_UTF8 in the top most CMakeFiles.txt,
which we do.
2021-07-15 08:34:02 +02:00
YuSanka
4257ffddde
GalleryDialog: Changes the paths to the system and custom galleries
2021-07-14 17:41:37 +02:00
YuSanka
8f5715b0d7
Follow-up fe7204379d
- added missed include
2021-07-14 16:48:55 +02:00
YuSanka
fe7204379d
GalleryDialog: Fixed sort of the filenames inside the list.
...
+ OSX Specific:
* Fixed scale of the lock on the system file icons
* Fixed buttons alignment for AboutDialog and SysInfoDialog
2021-07-14 16:45:34 +02:00
Lukas Matena
49ae885834
Correctly convert legacy bool 'draft_shield' to enum
2021-07-14 16:02:04 +02:00
Lukas Matena
b466f18326
Draft shield option is now an enum (Disabled/Limited/Enabled)
2021-07-14 16:02:04 +02:00
Lukas Matena
6eeedf2bc6
Skirt is now generated around brims, unless 'draft shield' is checked
2021-07-14 16:02:04 +02:00
Lukas Matena
63566a92b3
Merged psSkirt and psBrim
2021-07-14 16:02:04 +02:00
Lukas Matena
97d95e814f
Added input validation in painting gizmo (some values led to a crash)
2021-07-14 15:57:22 +02:00
enricoturri1966
802d675784
Follow-up of 18c8003a0f
-> Fixed bounding box of selected volumes
2021-07-14 15:32:09 +02:00
enricoturri1966
9aa129373c
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
2021-07-14 13:21:17 +02:00
enricoturri1966
ef8ddacdfc
Delayed rendering of transparent volumes
2021-07-14 13:20:57 +02:00
YuSanka
3d424c057c
GalleryDialog: Added loaded files quality control
...
+ Code cleaning
2021-07-14 12:47:52 +02:00
enricoturri1966
18c8003a0f
Fixes into Cut gizmo
2021-07-14 11:39:09 +02:00
YuSanka
062031a4c6
Replace with STL: Fixed update of the item name after replacing
...
+ OSX specific: Code refactoring for ObjectList:Rename() function
2021-07-14 09:22:03 +02:00
YuSanka
428362ec53
Fixed Windows DarkMode for some dialogues.
...
+ ProjectDropDialog: wxRadiloBox was changes to the wxStaticBox with wxRadioButtons because of dark mode colors update
+ Preferences: Fixed update of the text colors
2021-07-13 18:27:30 +02:00
tamasmeszaros
782e220890
Fix crash when all the holes fail to drill
2021-07-13 16:02:58 +02:00
Vojtech Bubnik
47f265f77f
Fixed R-Pi build
2021-07-13 14:08:44 +02:00
Vojtech Bubnik
106d9f7ca0
MMU segmentation: Implemented filtering of unprintable regions in
...
top/bottom propagation.
2021-07-13 14:00:21 +02:00
Lukáš Hejl
389ccf6d92
Fixed compilation in debug mode by removing the forgotten assert.
2021-07-13 12:56:01 +02:00
enricoturri1966
56e2f47ba6
Fixed conflicts after pulling from master
2021-07-13 12:11:54 +02:00
enricoturri1966
44d31f9bf2
Follow-up of d6fdf2d5c2
-> Automatic generation of missing thumbnails
2021-07-13 11:57:19 +02:00
Lukáš Hejl
6194e67e68
Triangle normals and lighting are computed inside the fragment shader for the multi-material painting gizmo.
...
It results in a six-fold reduction of the amount of data transferred into GPU because there is no need to duplicate vertices for every triangle. Also, normals aren't needed to be transferred to GPU.
2021-07-13 11:23:36 +02:00
Lukáš Hejl
a467d0e30e
Default object color is shown in the multi-material painting gizmo when the user switches to a printer with fewer extruders than the number of extruders used to paint the object.
2021-07-13 11:23:36 +02:00
Lukáš Hejl
c0092a7b0a
Speed up the rendering of triangles in painting gizmos by only copying triangle data to the GPU when triangles were changed by painting.
2021-07-13 11:23:36 +02:00
Vojtech Bubnik
28219142c5
Tracing MMU top / bottom segmentation open lines at "trace" level.
2021-07-13 11:19:20 +02:00
Vojtech Bubnik
19e3998bd0
Merge branch 'vb_mmu_top_bottom'
2021-07-13 11:08:52 +02:00
Vojtech Bubnik
25fa3eddf0
Fixed slab slicing for special cases (slicing plane intersects object
...
plane).
2021-07-13 11:06:59 +02:00
Lukas Matena
f1ff59bafe
Fixed build on Linux
2021-07-13 08:30:49 +02:00
YuSanka
0cdc54b710
GalleryDialog improvements:
...
* Added "Replace PNG" function
* Added locks instead of border for system shapes
2021-07-12 17:22:22 +02:00
Filip Sykala
756d2694eb
FIX: Mutable priority queue
2021-07-12 16:36:08 +02:00
Oleksandra Yushchenko
d6fdf2d5c2
Modifiers Gallery ( #6703 )
...
* Added GalleryDialog
* GalleryDialog improvements:
* Added DnD functionality
* Added "Delete custom shapes" function
2021-07-12 15:20:50 +02:00
Lukáš Hejl
569b7d7dab
Removed unnecessary backward compatibility with old multi-material painted 3MF from the early stage of development.
2021-07-12 13:37:33 +02:00
Lukáš Hejl
f78efa99fe
Fixed an issue where seed fill selection stuck displayed when the mouse was moving inside multi-material gizmo when the gizmo was overlapping the model.
2021-07-12 13:21:10 +02:00
Vojtech Bubnik
d0a4161f47
Follow up (bugfix) of 0d70a2be69
...
GLIndexedVertexArray newly uses Eigen::AlignedBox<float, 3>
for efficiency instead of our double based BoundingBoxf3.
2021-07-12 10:53:09 +02:00
Lukas Matena
dca6db8635
Added a missing locale switch needed for custom gcode validation when switching tabs
2021-07-12 09:38:32 +02:00
Filip Sykala
b2238834fb
Merge branch 'master' into fs_QuadricEdgeCollapse
2021-07-09 13:40:58 +02:00
Vojtech Bubnik
5bbe76003e
MutablePriorityQueue: Added is_trivially_copyable test for queue value
...
types, added [] accessors.
2021-07-09 13:25:41 +02:00
Vojtech Bubnik
e4fd6a828f
1) Fixed a significant bug in MutablePriorityQueue when setting
...
the indices allowing rescheduling of values in the middle of the queue.
2) Implemented a cache friendly variant - MutableSkipHeapPriorityQueue
based on
https://playfulprogramming.blogspot.com/2015/08/cache-optimizing-priority-queue.html
https://github.com/rollbear/prio_queue/blob/master/prio_queue.hpp
2021-07-09 12:53:29 +02:00
Filip Sykala
2c0b89e4a7
FIX Simplify test
2021-07-09 10:31:05 +02:00
Filip Sykala
8b4588d361
Merge branch 'simplification' into fs_QuadricEdgeCollapse
2021-07-09 09:21:07 +02:00
Filip Sykala
c53c958cdd
Merge branch 'master' into fs_QuadricEdgeCollapse
2021-07-09 09:10:05 +02:00
YuSanka
6f9f4f78b7
Added SimplificationDialog
2021-07-09 09:10:03 +02:00
Filip Sykala
e26bffadd8
Add throw_on_cancel and statusfn into QEC
2021-07-09 09:09:52 +02:00
Filip Sykala
c00dca7810
Speed up QEC by move error directly into MutablePriorityQueue
...
Memory optimization: Change size_t to 32bit int
Lightweight Error structure for faster PriorityQueue
2021-07-08 18:08:27 +02:00
tamasmeszaros
6d258d04d8
Merge branch 'tm_arrange_notify'
2021-07-08 16:36:49 +02:00
jmd73
72ed2e3f86
Changed "temporary instaled" to "temporarily installed" ( #6685 )
2021-07-08 15:59:29 +02:00
tamasmeszaros
c30ac4b66f
Add notification if some objects are ignored after arrange
2021-07-08 13:35:40 +02:00
Filip Sykala
ed9152d004
Merge branch 'master' into fs_QuadricEdgeCollapse
2021-07-07 16:52:10 +02:00
Lukas Matena
3fa78b52b2
Slightly improved 'no first layer extrusions' error message
2021-07-02 17:05:31 +02:00
David Kocik
029330d656
fix of infinite loop in notification lines calulating #6583
2021-07-02 15:13:03 +02:00
Lukas Matena
1d3b259c0a
Fixed incorrect use of _NDEBUG instead of NDEBUG
...
Some debugging code was compiled even in release mode because of this
2021-06-30 11:59:16 +02:00
YuSanka
a0328772b9
Follow-up 4652733201
- Fixed Text alignment for Notebook tabs without bitmaps
2021-06-30 10:44:27 +02:00
Lukas Matena
ffc0e36570
Fixed locales switching on macOS
2021-06-30 10:02:51 +02:00
Lukáš Hejl
8da083b702
Fixed compilation on Linux
2021-06-30 08:56:35 +02:00
Vojtech Bubnik
f02821a82d
Renamed the "marlinfirmware" firmware flavor to "marlin2".
2021-06-29 17:55:26 +02:00
Oleksandra Yushchenko
4652733201
MSW specific: Implementation of the own notebook control
...
* MSW specific: First implementation of the Notebook control to support Dark/Light color modes
* MSW specific: Set mode sizer to the Notebook control.
* MSW specific: Added icons to the Notepad control
+ There is no need to restart application after the changing of the color mode
* Fixed non-MSW build
* Updated color for SavePresetDialog
+ Added wrapper to wxMessageBox for mom-MSW platforms
2021-06-29 16:23:45 +02:00
tamasmeszaros
7fce368cca
Fix crash after SL1 import
2021-06-29 11:40:50 +02:00
tamasmeszaros
92cf46773a
Hotfix for arrange not working for objects with huge translation.
2021-06-28 14:55:15 +02:00
David Kocik
77e25c5022
fix of #6588 - using same copy function for updating presets as for exporting gcode
2021-06-28 13:21:07 +02:00
David Kocik
b14345012d
PrusaLink - cherrypick pick from stable branch
...
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
2021-06-28 12:36:01 +02:00
Lukáš Hejl
cb93c8ce99
Used function smooth_outward in multi-material segmentation to get rid of artifacts arisen after merging multi-volume objects.
2021-06-28 08:09:06 +02:00
Lukáš Hejl
a426093f12
Replaced boost::rtree in multi-material segmentation with much faster ClosestPointInRadiusLookup.
2021-06-28 08:09:06 +02:00
Lukáš Hejl
ce738102c6
Optimized the projection of painted triangles in multi-material segmentation. Added heuristics to skip most of the expensive calculations in cases where it is certain that performing these calculations would be useless.
2021-06-28 08:09:06 +02:00
Lukáš Hejl
48789e5ae1
Added a limitation on the number of usable extruders in the multi-material gizmo. If a printer has more extruders than this limit, a notification about it is shown.
2021-06-28 08:09:06 +02:00
Lukáš Hejl
23b26cb3f3
Fixed the issue where the object wasn't displayed after pressing the ESC key in the multi-material painting gizmo.
...
key in the multi-material painting gizmo.
Fixed also a similar issue in support and seam gizmos where an object was displayed with the wrong color after pressing the ESC key.
2021-06-28 08:09:06 +02:00
Vojtech Bubnik
e6295bbfe8
Fix of wxWidgets3.0 again wxGetApp not declared in this scope #6655
2021-06-28 07:45:13 +02:00
Vojtech Bubnik
211110ce53
Fixing some compiler warnings.
2021-06-27 17:45:41 +02:00
Vojtech Bubnik
e4e8c5df12
As an example of using the enum_bitmask infrastructure for type safe
...
sets of optional boolean parameters, the cut function "keep upper",
"keep lower" and "flip lower" boolean parameters were converted into
a single type safe enum_bitmask. Such a coding style is certainly
wordier than the original code, but much safer and more readable
than the error prone "boolean, boolean, boolean" function call
parameter list.
2021-06-27 17:36:25 +02:00
Vojtech Bubnik
0f3cabb5d9
Support for forward compatibility of configurations, user and system
...
config bundles, project files (3MFs, AMFs). When loading these files,
the caller may decide whether to substitute some of the configuration
values the current PrusaSlicer version does not understand with
some reasonable default value, and whether to report it. If substitution
is disabled, an exception is being thrown as before this commit.
If substitution is enabled, list of substitutions is returned by the
API to be presented to the user. This allows us to introduce for example
new firmware flavor key in PrusaSlicer 2.4 while letting PrusaSlicer
2.3.2 to fall back to some default and to report it to the user.
When slicing from command line, substutions are performed by default
and reported into the console, however substitutions may be either
disabled or made silent with the new "config-compatibility" command
line option.
Substitute enums and bools only. Allow booleans to be parsed as
true: "1", "enabled", "on" case insensitive
false: "0", "disabled", "off" case insensitive
This will allow us in the future for example to switch the draft_shield
boolean to an enum with the following values: "disabled" / "enabled" / "limited".
Added "enum_bitmask.hpp" - support for type safe sets of options.
See for example PresetBundle::load_configbundle(...
LoadConfigBundleAttributes flags) for an example of intended usage.
WIP: GUI for reporting the list of config substitutions needs to be
implemented by @YuSanka.
2021-06-27 16:57:05 +02:00
Vojtech Bubnik
ad336e2cc0
Because of a crash in PrusaSlicer 2.3.0/2.3.1 when showing an update
...
notification with some locales, we don't want PrusaSlicer 2.3.0/2.3.1
to show this notification. On the other hand, we would like PrusaSlicer
2.3.2 to show an update notification of the upcoming PrusaSlicer 2.4.0.
Thus we will let PrusaSlicer 2.3.2 and couple of follow-up versions
to download the version number from an alternate file until
the PrusaSlicer 2.3.0/2.3.1 are phased out, then we will revert to
the original name.
2021-06-25 17:54:43 +02:00
Vojtech Bubnik
9b70efc46a
Windows specific: Transactional saving of PrusaSlicer.ini to ensure
...
that configuration could be recovered in the case PrusaSlicer.ini
is corrupted during saving. The config is first written into a temp file
marked with a MD5 checksum. Once the file is saved, it is
copied to a backup file first, then moved to PrusaSlicer.ini.
When loading PrusaSlicer.ini fails, the backup file will be loaded
instead, however only if its MD5 checksum is valid.
The following "Fixes" comments are for github triggers. We implemented
a workaround, not a fix, we don't actually know how the data corruption
happens and why. Most likely the "Move file" Windows API is not atomic
and if PrusaSlicer crashes on another thread while moving the file,
PrusaSlicer.ini will only be partially saved, with the rest of the file
filled with nulls. We did not "fix" the issue, we just hope that our
workaround will help in majority of cases.
Fixes prusaslicer wont open 2.3 windows 10 #5812
Fixes Won't Open - Windows 10 #4915
Fixes PrusaSlicer Crashes upon opening with "'=' character not found in
line error" #2438
Fixes Fails to open on blank slic3r.ini %user%\AppData\Roaming\Slic3rPE
2021-06-25 16:44:06 +02:00
YuSanka
1378d2084a
Fix of #6650 - show estimated print time on ruler is not working
...
+ Parent center of the MessageDialogs
2021-06-24 13:59:48 +02:00
Vojtech Bubnik
204ae62449
Slight improvement in cost of background slicing cancellation.
2021-06-23 16:37:18 +02:00
Vojtech Bubnik
3a5a0575ef
Fixed after removing TBB deprecated APIs
2021-06-23 15:24:05 +02:00
Filip Sykala
38c83844a2
Merge branch 'master' into fs_QuadricEdgeCollapse
2021-06-23 13:59:03 +02:00
Filip Sykala
f8d759ad64
Assert check of new vertex can't be used general on All models(depends on scale)
...
Fix variable name in compare function
Remove second triangle from MPQ
2021-06-23 12:16:22 +02:00
Roman Beránek
e13535f822
drop deprecated TBB components ( #6590 )
...
Quite some time ago, many of the TBB components were deprecated in favor
of their near-equivalents in the STL or, in the case of task_scheduler_init,
were broken up and reconstituted under a less ad-hoc logic. Every time a header
file marked deprecated gets included, a rather loud warning is emitted, which
leads to a complete TBB's domination over the stderr stream during build time,
making it harder to notice _legitimate_ warnings.
Instead of merely muting the output with TBB_SUPPRESS_DEPRECATED_MESSAGES,
perform a genuine migration away from the deprecated components with the added
benefit of achieving a source compatibility with oneTBB, the successor to TBB
which has dropped the deprecated API for good.
What got replaced for what?
| Deprecated | Replacement |
| ------------------------------------- | --------------------------------------------- |
| `tbb::atomic` | `std::atomic` |
| `tbb::mutex` | `std::mutex` |
| `tbb::mutex::scoped_lock` | `std::scoped_lock<std::mutex>` |
| `tbb::mutex::scoped_lock` (empty) | `std::unique_lock<std::mutex>` (deferred) |
| `tbb::task_scheduler_init` | `tbb::global_control` |
| `tbb::this_thread` | `std::this_thread` |
Signed-off-by: Roman Beranek <roman.beranek@prusa3d.com>
2021-06-23 11:48:48 +02:00
enricoturri1966
7a7108b2ad
Fixed warning
2021-06-23 10:30:15 +02:00
Filip Sykala
1196fac551
Parallel QEC initialization
2021-06-23 09:50:27 +02:00
tamasmeszaros
2096a6dbbf
Fix error reporting when cgal mesh boolean crashes.
...
Change error report when catching SEH on cgal mesh boolean.
2021-06-22 18:13:35 +02:00
tamasmeszaros
49c6ce76d0
Search for suitable rotation when arranging items larger than the bed
2021-06-22 11:23:32 +02:00
Vojtech Bubnik
d3233d66fb
Fixing previous commit
2021-06-22 10:05:03 +02:00
Filip Sykala
892c246700
Fix Linux warnings
...
../src/libslic3r/QuadricEdgeCollapse.cpp:110:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
../src/libslic3r/QuadricEdgeCollapse.cpp:394:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:395:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:514:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/libslic3r/QuadricEdgeCollapse.cpp:514:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2021-06-22 10:01:14 +02:00
Vojtech Bubnik
c0715866ff
Win32 specific: SEH handler on background thread. Catches Windows
...
structured exceptions (hard crashes, segmentation faults...),
converts them to Slic3r::HardCrash exceptions and displays the exception
using the usual PrusaSlicer way.
The SEH handler is installed on the main background slicing thread
as of now, therefore hard crashes in TBB worker threads are not handled.
2021-06-22 09:54:08 +02:00
Filip Sykala
7c13cfa1d9
Add test checking diference in volume before/after simplification
...
FIX warnings
..\src\libslic3r\QuadricEdgeCollapse.cpp(173): warning C4056: overflow in floating-point constant arithmetic
..\src\libslic3r\QuadricEdgeCollapse.cpp(232): warning C4056: overflow in floating-point constant arithmetic
2021-06-22 09:41:38 +02:00
Filip Sykala
e3cdeda673
Add quadric edge collapse
2021-06-22 09:21:16 +02:00
YuSanka
4e59fd504e
DoubleSlider: Fixed out of range assert
2021-06-21 14:30:28 +02:00
Vojtech Bubnik
d291bb397b
Fixed compiler warnings
2021-06-20 16:39:10 +02:00
Vojtech Bubnik
0d70a2be69
Renamed create_face_neighbors_index() to its_face_edge_ids().
...
Renamed its_create_neighbors_index() / its_create_neighbors_index_par() to its_face_neighbors() / its_face_neighbors_par().
New variant of its_face_edge_ids() to create edge IDs from face neighbors.
Fixed some incorrect use of _NDEBUG, it should be NDEBUG.
PrintObject::slice_support_volumes() returns newly Polygons, which are cheaper than ExPolygons.
Updated SeamPlacer and SupportMaterial to use regions defined as Polygons, not ExPolygons.
TriangleSelector::get_facets_strict() returning a patch with T-joints retriangulated.
New slice_mesh_slabs() - slicing projections of a triangle patch into top / bottom layers of slices, for MMU top / bottom segmentation.
TriangleMeshSlicer - use 64 mutexes instead of one when scattering sliced triangles into layers. This makes a big difference on modern many core desktop computers.
When applying MM segmented regions to input regions, the split regions are now re-merged with 10x higher positive offset epsilon to avoid creating gaps.
When testing for existence of paint-on supports or seam, use a more efficient has_facets() test, which does not deserialize into the expensive TriangleSelector tree structure.
GLIndexedVertexArray newly uses Eigen::AlignedBox<float, 3> for efficiency instead of our double based BoundingBoxf3.
Improved MMU painting refresh speed by optimizing generation of the vertex buffers.
Refactored MMU segmentation - projection of painted surfaces from top / bottom.
1) Parallelized.
2) Using the new slice_mesh_slabs() instead of projecting one triangle by the other and merging them with Clipper.
2021-06-20 15:21:12 +02:00
combolek
d08a70478e
Fixes Linux (and probably MacOS) build: wx/msw/registry.h is only available on Windows. ( #6634 )
2021-06-19 11:45:48 +02:00
YuSanka
5434a8980f
Some code beautification for the last commit
...
+ Fix of the TabPresetComboBox layout for "light mode" + "tabs as a menu items" preferences
2021-06-18 21:54:20 +02:00
Oleksandra Yushchenko
fd071421cb
DarkMode for MSW ( #6632 )
...
* MSW specific: Dark Mode: First implementation
* Use menu instead of NoteBook
* Implemented MessageDialog
+ Fixed DarkMode for all dialogs and ColorPicker
* MSW DarkMode: Added missed updates for the switching between modes
* MSW DarkMode: Updated all existed context menus after switching of the mode
+ Added markers for the menu item witch is related to the selected tab
* Used wxFrame instead of wxDialog for SettingsDialog
(this change allow us to use menu bar in SettingsDialog)
+ fix for #6548 - Prusa Slicer 2.3.1 not activating non-modal settings window if settings window is minimized
* Implemented "Always use Dark mode colors" preference option
* Fixes for non_MSW build
* Next fixes for non-MSW builds
* Preferences: Fixed selection of the Settings Layout for non-MSW platforms
+ Updated DarkMode for colorpickers
* Windows DarkMode next fixes
* MSWDarkMode: Suppress to use system color to the PrusaSlicer
Select "Preferences -> Use Dark color mode (experimental)" to allow dark mode for the application
* Fixed MSW build
* MSWDarkMode: Upadteed color mode for ExtruderSequenceDialog and for dialogs related to the DoubleSlider
* Implemented Auto recreation of the PrusaSlicer when color mode is changed.
* Preferences: Added option "Set settings tabs as menu items (experimental)"
2021-06-18 19:46:04 +02:00
YuSanka
65f440c2ba
Follow-up e3000c5305
- Fixed OSX build
2021-06-18 12:22:59 +02:00
tamasmeszaros
d3de14170a
Fix build for unixes
2021-06-17 22:21:34 +02:00
YuSanka
e3000c5305
Implementation of the FR #3856 - Add option to replace stl in object list (right panel)
2021-06-17 21:29:18 +02:00
Lukáš Hejl
684b66125e
Fixed an issue where multi-material segmentation ignored the last extruder.
2021-06-17 19:26:40 +02:00
tamasmeszaros
976dd72b8b
Catching of sigsegv and sigfpe with structured exceptions on win
2021-06-17 15:17:21 +02:00
tamasmeszaros
a5529aff1e
Implement custom integer->string conversion for hashing
...
Converts to hexadecimal, reversed order which is faster.
2021-06-17 15:40:22 +02:00
enricoturri1966
72df789077
Fixed the following crash:
...
1) Start PrusaSlicer
2) Add a box to the plater
3) Open Seam Painting or Paint - on supports gizmo
4) Save project
->crash
2021-06-17 08:16:54 +02:00
YuSanka
c5cb94d92c
Follow up 0b5ea8f429
...
- Un-select random sequence by default
- Added a check for interval height. It have to be bigger then print layer height
2021-06-16 18:20:26 +02:00
Lukáš Hejl
2e54648b97
Fixed a multi-material painting gizmo crash when extruders colors aren't initialized, which happens when switching between SLA and FDM printer.
2021-06-16 17:05:24 +02:00
Lukáš Hejl
b32202e597
Fixed incorrectly displayed custom supports and seams in the support and seam gizmos after 7377fc34ac
.
2021-06-16 13:41:35 +02:00
Vojtech Bubnik
d0411223be
TriangleSelector:
...
1) Fixing yesterday's regression in deserialization of older painted 3MFs
(order of triangle children is now reversed, thus the serialization
/ deserialization has to take it into account).
2) WIP extraction into facets to triangulate T-joints.
2021-06-16 10:52:00 +02:00
Lukáš Hejl
6ddd88e596
Fixed an issue where the color of the first extruder always replaced the default color after painting in a multi-material gizmo.
...
multi_material_segmentation_by_painting is now returning only the painted region. Regions with default colors that aren't painted by multi-material gizmo aren't returned.
2021-06-16 06:06:37 +02:00
Lukáš Hejl
ae1a799cf4
Fixed an issue for multi-volume objects where the seed fill visualization in the multi-material gizmo didn't disappear after the mouse was moved to another volume.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
c59cf5de40
Fixed layers with the wrong color after multi-material segmentation on objects with multiple objects.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
21b38db488
Added using the move operator in some parts of multi-material segmentation.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
a06e42d01f
Moved debug prints out of parallel cycles, and more debug prints were added for multi-material segmentation.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
15a1b51339
Refactoring and cleanup of painting gizmos.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
8a77fa38f0
Modified MMU painting gizmo behavior so that all triangles aren't painted by default by the first extruder, which was causing several problems.
...
This commit also fixed the following issues:
1) After loading a 3MF with painted triangles using the MMU painting gizmo, the painted triangles might not be displayed correctly in the MMU painting gizmo.
2) The MMU segmentation was unnecessarily executed for all layers and not just for the painted layers.
3) Object's base color wasn't changed when the assigned extruder for that object was changed while the MMU paint gizmo was opened.
4) Changing the base color of an object was only possible by removing all painted triangles.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
b2677f513c
Fixed a possible crash when closing the MMU painting gizmo cause by a non-virtual destructor.
2021-06-16 06:06:33 +02:00
Lukáš Hejl
7377fc34ac
Fixed cracks in MMU painting gizmo. All triangles, even not painted triangles, are now rendered inside MMU painting gizmo.
...
The cracks were caused by using glPolygonOffset to resolve Z-fighting. All triangles of the object were firstly rendered entirely with a base color. And then paint triangles were drawn over these already rendered triangles.
2021-06-16 06:06:33 +02:00
Lukáš Hejl
de9ed9ee3e
Follow-up of 39fd8065a1
: Apply changes also for MMU painting gizmo, so shader->start_using() is called only once.
2021-06-16 06:06:33 +02:00
Lukáš Hejl
c751f2d638
Show info about multi-material segmentation in ObjectList.
2021-06-16 06:06:33 +02:00
Vojtech Bubnik
154e552006
TriangleSelector optimizations:
...
1) When splitting a triangle, vertices are now properly shared with
the neighbor triangles, if these are already split.
Please note that the splitting may not be regular if the splitting
thershold is changed between splitting calls. Still the new code
shares the vertices accross shared edges properly.
2) Triangles resp. vertices are newly reused after deleted using
linked lists of released triangles resp. vertices.
This mechanism replaces the old mechanism of reusing already split
triangles.
2021-06-15 14:43:46 +02:00
YuSanka
0b5ea8f429
Random extruder sequence for MMU.
...
Related to https://github.com/prusa3d/PrusaSlicer/issues/1866
2021-06-15 12:38:05 +02:00
enricoturri1966
a2788f3a73
GCode Viewer -> Fixed used filament for gcode files produced by other slicers
2021-06-15 09:39:33 +02:00
Vojtech Bubnik
2f8190e6d0
Workaround of boost::filesystem::copy_file() incompatibility
...
on some file systems (eCrypt ...)
Should fix #4716 #6588
2021-06-14 12:19:13 +02:00
Lukáš Hejl
bfd83f925d
Fixed build on MacOS.
...
Based on information in https://stackoverflow.com/a/46115028 , structured bindings in C++17 don't name variables, and because of that, it is impossible to capture these variables in lambda functions.
2021-06-13 16:22:44 +02:00
Vojtech Bubnik
e17b57d6bd
Fixing previous TriangleSelector refactoring.
2021-06-11 17:59:33 +02:00
Vojtech Bubnik
403bb926c8
Fixed regression bug after PrintRegions refactoring:
...
Fixed crash if an object is outside the print bed, its modifier inside
the print bed and the modifier gets deleted.
2021-06-11 17:29:16 +02:00
Vojtech Bubnik
6bade1b24a
TriangleSelector - some memory optimization.
...
Don't store traingle normal, but reference the source triangle,
which stores its normal.
2021-06-11 12:27:58 +02:00
Vojtech Bubnik
74ab3e108e
TriangleSelector refactoring for readability and a bit of performance,
...
added some comments, improved encapsulation through private attributes,
removed recursive call through std::function etc.
2021-06-11 11:02:47 +02:00
YuSanka
87a996d0d5
Code refactoring to avoid a call of update_ui_from_settings() every time when switching between "3D-View" and "Preview"
2021-06-11 10:34:13 +02:00
enricoturri1966
841f8c6715
Added missing assignment into ModelObject::assign_copy()
2021-06-10 13:32:53 +02:00
Vojtech Bubnik
4ada2ed093
TriangleSelector::get_facets() refactoring to share vertices.
...
TriangleSelector::valid refactored to m_valid and valid()
and bool members moved next to each other to shrink data structure
size due to memory alignment.
2021-06-10 12:43:31 +02:00
Vojtech Bubnik
95f4690e25
Support / seam / MMU painting serialization / deserialization:
...
Changed the serialization structure
std::map<int, std::vector<bool>>
to a significantly more compact
std::pair<std::vector<std::pair<int, int>>, std::vector<bool>>
Such change shall significantly improve efficiency of Undo / Redo stack.
2021-06-10 09:26:30 +02:00
YuSanka
b59ff2c294
Fixed a bug in update of the ObjectList when switching between 3d-View and Preview
...
Steps to repro:
1. start PrusaSlicer
2. add a box
-> watch the object list: only one item is shown in the list
3. switch to preview
-> the item in the object list gets a child
2021-06-09 17:21:39 +02:00
enricoturri1966
5631b2cb7c
Follow-up of 2d9953069a
2021-06-08 15:10:01 +02:00
tamasmeszaros
cd19756a1d
Merge branch 'tm_its_refactor_3'
2021-06-08 12:22:28 +02:00
tamasmeszaros
b5771a5787
try to fix build on windows
2021-06-08 11:53:38 +02:00
enricoturri1966
5bbc68df7b
Do not close application when user select 'Cancel' in the save dirty project dialog
2021-06-08 11:51:41 +02:00
tamasmeszaros
904387520e
Fix the build
2021-06-08 11:02:29 +02:00
tamasmeszaros
0ca17b0798
Make new split always default if feasible
2021-06-08 10:34:32 +02:00
tamasmeszaros
97529ff6b7
Add parallel version of neighbors index creation, make it default
2021-06-08 10:34:32 +02:00
tamasmeszaros
b4d540ec4c
Improve its_split for large number of parts
2021-06-08 10:34:32 +02:00
tamasmeszaros
c4507842a0
Add new (winner) neighbor index based on measurements
2021-06-08 10:34:32 +02:00
tamasmeszaros
b14b000c73
Add triangle mesh split to perf comparison
2021-06-08 10:34:32 +02:00
tamasmeszaros
c8be2cdceb
Added measuring sandbox for neighbors index creation
2021-06-08 10:34:32 +02:00
tamasmeszaros
c542e6e14b
Corrected mesh split implementation
2021-06-08 10:28:23 +02:00
tamasmeszaros
8fdb0fddc0
Get rid of Contour3D
2021-06-08 10:28:23 +02:00
tamasmeszaros
e6f97358bc
Refactored hollowing backend to use indexed_triangle_mesh
2021-06-08 10:28:23 +02:00
tamasmeszaros
f12187b53d
wip on hollowing refactor
2021-06-08 10:27:35 +02:00
tamasmeszaros
1009f78862
SLA backend refactored, except Hollowing
2021-06-08 10:27:35 +02:00
enricoturri1966
1c35dfe591
Tech ENABLE_ALLOW_NEGATIVE_Z -> Added threshold to detect if an object is sinking
2021-06-08 10:07:47 +02:00
Lukas Matena
1f29a2593b
Fixed two more locales-related issues
...
One warning was also fixed
2021-06-07 12:31:41 +02:00
enricoturri1966
8e75919948
#6587 - Fixed temporary .gcode file locked by gcode window visualizator while exporting to gcode
2021-06-07 11:54:16 +02:00
Lukas Matena
d2874f2e34
Fixed a memory leak during locales switching on macOS and
...
removed frequent locales switching during gcode processing
2021-06-05 07:09:23 +02:00
enricoturri1966
d8ac2ceaf6
Remove const_cast<> introduced with 0e3090fb28
2021-06-04 16:53:05 +02:00
enricoturri1966
90edccf772
Remove const_cast<> introduced with 4da8de5f49
2021-06-04 10:23:31 +02:00
Lukas Matena
39fd8065a1
Fixed clipping plane when used with painter gizmos (follow-up of 94877a0
)
2021-06-04 09:34:55 +02:00
Vojtech Bubnik
8d325008d1
Small MMU segmentation optimization
2021-06-04 08:46:02 +02:00
Lukáš Hejl
cc913d52ef
Added name for items in undo/redo stack inside multi-material gizmo.
2021-06-03 18:11:48 +02:00
Lukáš Hejl
94877a0ec0
Fixed the wrong transformation matrix for "Clipping of view" when is used a printer with multiple extruders.
2021-06-03 08:00:46 +02:00
Vojtech Bubnik
9efe58e6c7
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-06-02 18:25:11 +02:00
YuSanka
4b5e568f14
Follow-up 7eebd56b5f
- fixed a typo
...
+ added add_negative.svg for dark mode
2021-06-02 14:36:49 +02:00
YuSanka
7eebd56b5f
Fixed DnD for "Model part" volumes inside the object
...
Fixed volumes order inside the object
2021-06-02 12:54:56 +02:00
Vojtech Bubnik
2d9953069a
Removed unnecessary const_cast calls inside Camera.
2021-06-02 12:19:55 +02:00
Vojtech Bubnik
a1283277d3
Fixing a regression crash in Preset Hints.
2021-06-02 11:28:55 +02:00
Lukáš Hejl
edf8d22aba
Fixed an issue when the option "Inner brim only" doesn't generate brim inside the object in some cases, and issue that top-level brim was ignoring an offset around the object without a brim.
...
Also, some possible warnings were fixed.
2021-06-02 10:33:16 +02:00
Yuri D'Elia
35195dc593
Add <cfloat> for missing DBL_MAX declaration ( #6582 )
...
Fixes build on linux/gcc10.
2021-06-01 19:54:53 +02:00
Vojtech Bubnik
0bfc53f5a5
VertexFaceIndex: vertex index to incident face indices built for
...
indexed_triangle_set.
2021-06-01 19:30:26 +02:00
David Kocik
2d60c90ff5
Remove unused include_directory in cmake
2021-06-01 13:52:02 +02:00
Vojtech Bubnik
49c2fc160d
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-06-01 12:46:37 +02:00
Vojtech Bubnik
9aa520baf3
Fix of previous commit: Mixed up ClipperLib::pftPositive and pftNonZero
2021-06-01 12:33:14 +02:00
enricoturri1966
6b7bd30da3
Show sequential print clearance regions when Move/Rotate/Scale gizmos are active
2021-06-01 11:36:12 +02:00
Vojtech Bubnik
73e0099c55
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-06-01 11:19:53 +02:00
Vojtech Bubnik
7681eb8496
PrintRegion refactoring: Fixed a crash when an object is moved from outside
...
the print bed inside and it becomes printable.
2021-06-01 11:12:55 +02:00
Vojtech Bubnik
20ba7c0a1f
New parameter "Slicing Mode" for supporting 3DLabPrint airplane models.
...
S3D's strategy for merging self intersecting models is "Even / Odd"
which PrusaSlicer now supports as an alternative to "Positive" rule.
Also added a "Close Holes" option to fill in all internal structures.
3D-Labprint Models aren't sliceable (till years) #3062 #3708
2021-06-01 11:10:12 +02:00
enricoturri1966
1d4f7a8870
Changed logic to avoid saving a project while a gizmo is in editing mode
2021-06-01 08:32:58 +02:00
Lukas Matena
580dc890b8
Wipe tower: use normal retraction when moving to the tower, not toolchange retraction
...
This does not make sense, there is always an unretraction when the head arrives at the tower.
2021-05-31 21:23:03 +02:00
Lukas Matena
4657e0d670
Improvement related to 'separate z travel speed':
...
default to zero = use good old travel speed. This is to
ensure backwards compatibility with existing profiles
2021-05-31 21:21:53 +02:00
Martin Budden
bd6badf123
Added option to independently set z axis travel speed
2021-05-31 21:20:43 +02:00
Vojtech Bubnik
df87f1b929
Fixed some compiler warnings
2021-05-31 14:48:26 +02:00
Lukáš Hejl
660acede9e
Sphere brush color in MMU painting gizmo is now the same as color used for painting.
2021-05-31 14:23:12 +02:00
Vojtech Bubnik
033d9f3a5e
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-05-31 14:05:53 +02:00
Vojtech Bubnik
8c95212aae
Bugfix of PrintRegion refactoring: Correct invalidation of regions
...
on object transformation.
2021-05-31 14:04:45 +02:00
enricoturri1966
54b69ea9e5
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-31 12:55:03 +02:00
enricoturri1966
f0354b43c1
Fixed conflicts after merge with master + fixed rendering of hovered gizmo grabbers
2021-05-31 12:54:48 +02:00
Lukas Matena
b30a6d5883
Unify Delete/Backspace behaviour in gizmos with the rest of slicer. Also,
...
backspace on macOS in SLA gizmo now deletes points and not the whole object,
which was quite unexpected.
2021-05-31 11:50:00 +02:00
Lukas Matena
0d721bfb07
Slightly reworded 'missing layers' warning, to reflect that it is no longer considered an error
2021-05-31 11:16:28 +02:00
Lukáš Hejl
2438e3a891
Fixed issue that the lower half of the object was shown darker than the upper half of the object after slicing with MMU segmentation.
2021-05-31 07:26:38 +02:00
Lukáš Hejl
02a0955a5f
Fixed possible wrongly filled ZIP headers in case that pState->m_zip64 is sets to true.
2021-05-29 19:56:20 +02:00
Lukáš Hejl
7f29647d67
Added missing includes (GCC 11.1)
2021-05-29 19:55:20 +02:00
Lukáš Hejl
2cbf7728bb
Fixed that seed fill left all triangles split instead of merging them.
2021-05-28 17:42:28 +02:00
Lukáš Hejl
726a48383f
Cleaned up of 0a6490bab9
2021-05-28 17:36:56 +02:00
Lukas Matena
8c560522a3
Fixed rendering of gizmo grabbers
2021-05-28 16:44:13 +02:00
enricoturri1966
e1d5d0804b
Added missing uniform calls for emission_factor
2021-05-28 16:44:13 +02:00
enricoturri1966
f69bd75464
Fixed rendering of gizmos' grabbers
2021-05-28 16:44:13 +02:00
enricoturri1966
9605d10caa
Unified color definition
2021-05-28 16:44:13 +02:00
enricoturri1966
e648368934
Removed unneeded calls to GL_LIGHTING
2021-05-28 16:44:13 +02:00
enricoturri1966
b63de990d4
Removed static members from GLGizmoBase and GLGizmoBase::Grabber to fix OpenGL error when closing the application
2021-05-28 16:44:13 +02:00
Lukas Matena
2e24e689fa
Grabbers and support points appearence tweaking, some refactoring
2021-05-28 16:44:13 +02:00
Lukas Matena
846afdf7f3
Removed last GLU call, removed libGLU from CMakeLists
2021-05-28 16:44:13 +02:00
Lukas Matena
fd024eadcd
Removed gluProject and gluUnProject calls
2021-05-28 16:44:13 +02:00
Lukas Matena
97b7ef7dc0
Removed GLU calls from all the gizmos
2021-05-28 16:44:13 +02:00
enricoturri1966
0c7095d807
Fixed crash when deleting last obejct from plater
2021-05-28 16:28:56 +02:00
Vojtech Bubnik
f5c7d14e85
Bugfix after refactoring of PrintRegions: Fixed handling of cached_volume_ids
2021-05-28 15:55:18 +02:00
Vojtech Bubnik
fe96a20b50
Fixed compilation on GCC
2021-05-28 15:22:00 +02:00
Vojtech Bubnik
7d3b2b5b6e
Merge branch 'vb_print_regions' of https://github.com/Prusa3d/PrusaSlicer into vb_print_regions
2021-05-28 15:14:41 +02:00
Vojtech Bubnik
c02f95dfd6
Bugfixes after PrintRegion refactoring.
2021-05-28 15:14:34 +02:00
YuSanka
8e1cde43a6
Update extruder show/hide and default extruder color in respect to the volume type
2021-05-28 13:41:36 +02:00
Lukáš Hejl
0a6490bab9
Added cancellation to MMU segmentation.
2021-05-28 05:57:32 +02:00
Lukáš Hejl
281ac1f2f1
Added missing includes (GCC 9.3)
2021-05-27 16:47:31 +02:00
Vojtech Bubnik
3e28b4c967
Fix of previous commit
2021-05-27 16:14:54 +02:00
Vojtech Bubnik
99301f89f6
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-05-27 16:12:53 +02:00
Vojtech Bubnik
818cb703ed
Refactored the ModelVolume bounding box to Eigen::AlignedBox<float>,
...
separated splitting of LayerRegions by MMU segmentation to its own
function.
2021-05-27 16:12:34 +02:00
Vojtech Bubnik
b5aa09e5ba
WIP: Integration of MMU painting into the slicing back-end.
2021-05-27 14:29:51 +02:00
enricoturri1966
0b16ffaa07
Follow-up of b3ca8cb0af
-> Fixed typo
2021-05-27 14:05:29 +02:00
enricoturri1966
b3ca8cb0af
Fixed calculation of used filament for gcode viewer (take data from gcode file)
2021-05-27 12:25:59 +02:00
Vojtech Bubnik
9e4d483453
Merge branch 'vb_print_regions' of https://github.com/Prusa3d/PrusaSlicer into vb_print_regions
2021-05-26 16:15:01 +02:00
Vojtech Bubnik
409e1c5cc8
Some fixes after preceding merge. Moved mmu_segmented_region_max_width
...
from PrintConfig to PrintObjectConfig.
2021-05-26 16:14:52 +02:00
YuSanka
b7769856d1
Fixed DnD function for volumes inside the object in respect to the volume type
2021-05-26 15:36:48 +02:00
Vojtech Bubnik
980ca195f5
Merge remote-tracking branch 'remotes/origin/lh_multi_material_segmentation' into vb_print_regions
2021-05-26 15:23:35 +02:00
Vojtech Bubnik
0d081c90f0
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-05-26 14:38:34 +02:00
Vojtech Bubnik
7f1f0d29d0
Will gcc accept this?
2021-05-26 14:33:24 +02:00
Vojtech Bubnik
cba1950a4e
Fixing compilation on gcc.
2021-05-26 14:30:25 +02:00
Vojtech Bubnik
e24026bfa5
Making the "Default" extruder transparent for modifier meshes and layer
...
range modifiers.
2021-05-26 14:25:33 +02:00
Vojtech Bubnik
b3195614cf
WIP PrintRegion refactoring: Another round of bug fixing, negative volumes
...
seem to work.
2021-05-26 12:41:06 +02:00
Vojtech Bubnik
8ab6a615d0
Fixed another compiler warning
2021-05-25 21:17:07 +02:00
Vojtech Bubnik
dd79a2b832
Fixing some compiler warnings
2021-05-25 20:46:31 +02:00
Vojtech Bubnik
8a297be74e
Fixing another clang complaint
2021-05-25 20:03:05 +02:00
Vojtech Bubnik
c3cd2c7f55
Fixing an OSX clang quirk.
2021-05-25 19:27:20 +02:00
Vojtech Bubnik
9b9354a2aa
WIP: Rework of PrintRegions, bunch of bug fixes.
2021-05-25 18:12:38 +02:00
enricoturri1966
87815b0b16
Tech ENABLE_SEQUENTIAL_LIMITS -> Some refactoring
2021-05-25 15:55:37 +02:00
enricoturri1966
44e9693789
Tech ENABLE_SEQUENTIAL_LIMITS -> Fixed instance transformations
2021-05-25 13:34:51 +02:00
Lukáš Hejl
671c2ace17
Fixed a modification time for files appended using the streaming interface in the miniz library.
2021-05-25 10:38:29 +02:00
Vojtech Bubnik
701a0c9576
Two more bugs squished.
2021-05-24 18:07:12 +02:00
YuSanka
cf76b5c264
Added "Negative volume" type item to the ObjectList
2021-05-24 17:32:40 +02:00
Vojtech Bubnik
72d1faa03e
WIP PrintRegion refactoring: Squashed some bugs.
2021-05-24 16:55:34 +02:00
Vojtech Bubnik
c8bdc62af4
Fixing compilation on Linux
2021-05-24 15:12:04 +02:00
Vojtech Bubnik
04014db136
Fixing compilation on Linux
2021-05-24 15:08:07 +02:00
Vojtech Bubnik
92b4f0542a
Another compilation fix.
2021-05-24 15:00:08 +02:00
enricoturri1966
ec4bf90da3
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-24 14:43:21 +02:00
enricoturri1966
9d216104e0
Fixed warning
2021-05-24 14:42:57 +02:00
Vojtech Bubnik
fd97a49ccc
Fixing the previous commit.
2021-05-24 14:36:27 +02:00
enricoturri1966
7a14005f5a
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-24 14:19:40 +02:00
enricoturri1966
9f6751586c
Tech ENABLE_SEQUENTIAL_LIMITS -> Do not show sequential print clearance regions contours when there is only one instance on the plater
2021-05-24 14:18:52 +02:00
enricoturri1966
abbe7f7eea
Tech ENABLE_SEQUENTIAL_LIMITS -> Reset sequential print clearance regions contours when clearing the plater
2021-05-24 14:11:09 +02:00
Vojtech Bubnik
e658fe0698
WIP: PrintRegion refactoring, it finally compiles!
...
Config/PrintConfig refactoring to support operator< for StaticPrintConfig
derived containers.
2021-05-24 14:10:04 +02:00
enricoturri1966
40b97c33c5
Tech ENABLE_SEQUENTIAL_LIMITS -> Another improvement in performance when showing sequential print clearance regions contours while dragging objects
2021-05-24 13:22:37 +02:00
Lukas Matena
afca744d37
Fixed a bug when reverting to an old value with comma-separated doubles
2021-05-24 12:23:44 +02:00
Lukas Matena
4960b125c5
Fixed incorrect locales handling in the UI (Field, ObjectManipulation, etc)
2021-05-24 12:23:39 +02:00
Lukas Matena
c05b8210f2
Fixed several locales issues on file import/export
2021-05-24 12:22:00 +02:00
Lukas Matena
4a7f078527
Fixed debug build
2021-05-24 12:20:29 +02:00
Lukas Matena
6b6b086948
Fixed tests and windows build
2021-05-24 12:20:29 +02:00
Lukas Matena
c5c6f51ae0
Fixed third batch of locale-dependent calls
2021-05-24 12:20:29 +02:00
Lukas Matena
fef385cd6b
Fixed second batch of locale-dependent calls
2021-05-24 12:20:29 +02:00
Lukas Matena
9ee2fc8275
Fixed first batch of locale-dependent calls
2021-05-24 12:20:29 +02:00
Lukas Matena
5a1441f9b7
Created a RAII class to switch LC_NUMERIC to "C" and back
2021-05-24 12:20:29 +02:00
enricoturri1966
6192a3eaf7
Tech ENABLE_SEQUENTIAL_LIMITS -> Improved performance when showing sequential print clearance regions contours while dragging objects
2021-05-24 12:11:49 +02:00
Vojtech Bubnik
740773db85
WIP: Refactoring of PrintRegions. It nearly compiles!
2021-05-21 17:57:37 +02:00
enricoturri1966
77dfeb84bc
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-21 14:58:41 +02:00
enricoturri1966
d5c462f5a6
Tech ENABLE_SEQUENTIAL_LIMITS -> Show sequential print clearance regions contours while dragging objects
2021-05-21 14:57:03 +02:00
Lukáš Hejl
ed9c93f85a
Added missing includes (GCC 9.3)
2021-05-21 07:42:37 +02:00
Lukáš Hejl
f50046b31b
Modified streaming interface in miniz library to use ZIP64 extension only for files exciding the limits.
...
The modification is based on a preallocation space in the Extra field using a phony custom block in the Local file header. This space is eventually overwritten by the ZIP64 extension if the file exceeds 4GiB.
Also were fixed differences from PKZip specification in the streaming interface.
2021-05-20 19:44:12 +02:00
enricoturri1966
38657d7e4e
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-20 15:38:50 +02:00
enricoturri1966
d13c550968
Fixed conflicts after merge with master
2021-05-20 15:37:56 +02:00
enricoturri1966
6bb2982b98
Skip picking pass when plater is empty
2021-05-20 15:34:59 +02:00
enricoturri1966
2bd3e018b1
Follow-up of d54548367a
-> Reintroduce GLCanvas3D::m_old_size to avoid unneeded calls to render()
2021-05-20 14:42:40 +02:00
Vojtech Bubnik
ef9004cee4
Fix of its_collect_mesh_projection_points_above()
...
Fix of perl integration tests after introduction of not using the mesh
below the print bed.
2021-05-20 13:58:27 +02:00
David Kocik
635bf8d9f1
Notifications: Calculating space left for hypertext with escaped text
2021-05-20 13:09:45 +02:00
Enrico Turri
eb431db7ed
Test
2021-05-20 11:04:47 +02:00
enricoturri1966
33d489df30
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-20 10:47:51 +02:00
enricoturri1966
a218e0ef18
Tech ENABLE_ALLOW_NEGATIVE_Z -> New implementation for method ModelObject::convex_hull_2d()
2021-05-20 09:32:17 +02:00
enricoturri1966
8377b6ef4f
Fixed typo in its_collect_mesh_projection_points_above() and method TriangleMesh::slice() set as const
2021-05-20 09:09:19 +02:00
Vojtech Bubnik
ff6623b0f4
Fixing
2021-05-19 16:51:25 +02:00
Vojtech Bubnik
116e2b2112
Fixing the slice_mesh() after recent refactoring.
2021-05-19 16:09:45 +02:00
Vojtech Bubnik
68b0d92183
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-05-19 14:00:21 +02:00
Vojtech Bubnik
31942e03db
Optimization of its_collect_mesh_projection_points_above(): Reserve points.
2021-05-19 13:59:34 +02:00
Vojtech Bubnik
e952aded78
cut_mesh(): new parameter to optionally not triangulate the caps.
2021-05-19 13:52:47 +02:00
Vojtech Bubnik
66cf7ea9d3
Extracting its_collect_mesh_projection_points_above() out of
...
its_convex_hull_2d_above(), so that the projected points may get
collected over multiple volumes before applying Geometry::convex_hull()
2021-05-19 13:39:56 +02:00
Vojtech Bubnik
5644b98d3b
Factored out convex hull calculation from ModelObject::convex_hull_2d()
...
to Geometry::convex_hull().
Update Geometry::convex_hull() to handle duplicate points.
2021-05-19 13:23:19 +02:00
Vojtech Bubnik
8db2d96c75
Point::ccw() optimization: Calculate with int64, not doubles.
2021-05-19 12:01:30 +02:00
enricoturri1966
0d8a1c3d2a
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-19 11:45:05 +02:00
Vojtech Bubnik
6b54f34ce1
New functions: its_convex_hull_2d_above()
2021-05-19 11:35:42 +02:00
tamasmeszaros
e892550cb0
Fix warning of ignored variable in structured binding
2021-05-19 10:08:41 +02:00
Vojtech Bubnik
682c405fc2
Merge remote-tracking branch 'remotes/origin/master' into vb_print_regions
2021-05-19 09:40:24 +02:00
Vojtech Bubnik
f5f912e6e9
WIP: Refactoring of PrintRegions
2021-05-19 09:38:51 +02:00
enricoturri1966
53397cee17
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-19 08:40:32 +02:00
enricoturri1966
4a134f5320
Follow-up of c37d18f046
-> Removed assert
2021-05-19 08:39:04 +02:00
enricoturri1966
d60893b990
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-19 08:27:27 +02:00
Vojtech Bubnik
c28cd957d5
New utility function its_merge_vertices().
...
Implemented contour simplification inside slice_mesh_ex().
2021-05-18 17:57:55 +02:00
YuSanka
dfc6d399f7
Fixed update of the ObjectManipulation when "autocenter" is on
2021-05-18 17:06:41 +02:00
Vojtech Bubnik
78c0199523
TriangleMeshSlicer: Optimized out unnecessary transformations.
2021-05-18 16:12:49 +02:00
Vojtech Bubnik
70b4915f9c
TriangleMeshSlicer: Got rid of admesh!
2021-05-18 15:05:30 +02:00
YuSanka
1256aebd88
Fix of some warnings
2021-05-18 12:58:14 +02:00
enricoturri1966
e338eebade
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-18 12:50:01 +02:00
YuSanka
6c47b15834
Follow-up of a5d5ceb30d
- Fixed run on Windows
2021-05-18 12:32:37 +02:00
enricoturri1966
221c054e4f
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-18 10:37:39 +02:00
YuSanka
a5d5ceb30d
DoubleSlider: Fixed ruler for sequential print of the object with different heights
2021-05-17 21:12:19 +02:00
Vojtech Bubnik
308d6b7809
WIP: Reworked slicing
...
1) Slicing code moved to TriangleMeshSlicer.cpp,hpp from TriangleMesh.cpp,hpp
2) Refactored to use as little as possible of admesh.
2021-05-17 20:25:59 +02:00
tamasmeszaros
68d2427a34
Fix marching squares test crash in debug builds
2021-05-17 14:54:47 +02:00
enricoturri1966
40086784fe
Small refactoring in GLCanvas3D
2021-05-17 13:14:19 +02:00
enricoturri1966
858ea16b95
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-17 13:05:09 +02:00
enricoturri1966
0605813e68
Faster ModelObject::convex_hull_2d() by using ModelVolume 3D convex hulls
2021-05-17 13:02:38 +02:00
enricoturri1966
c37d18f046
Follow-up of ca14ea4c33
-> Fixed arrange with sinking objects
2021-05-17 12:53:05 +02:00
enricoturri1966
a929b29a0b
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-14 15:06:44 +02:00
enricoturri1966
4aab49f591
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
2021-05-14 15:03:51 +02:00
enricoturri1966
ca14ea4c33
Tech ENABLE_ALLOW_NEGATIVE_Z -> ModelObject::convex_hull_2d() and sequential_print_horizontal_clearance_valid() modified to take in account for sinking instances
2021-05-14 15:02:54 +02:00
Vojtech Bubnik
2b9e41e695
Fix of a special case in auto color print feature, which crashed with
...
single layer PrintObjects.
Fixes Segmentation fault (GLib-GObject null pointer) #6516
2021-05-14 14:57:41 +02:00
Vojtech Bubnik
221af991c2
Fixed update of PrintRegions after removing an object.
...
The bug has been introduced during recent PrintRegion refactoring.
2021-05-14 11:52:33 +02:00
enricoturri1966
b9011ca5f1
Tech ENABLE_SEQUENTIAL_LIMITS -> Do not show sequential print clearance regions while layers editing is enabled
2021-05-14 11:20:02 +02:00
enricoturri1966
b014e87ef7
Tech ENABLE_SEQUENTIAL_LIMITS -> Fixed z-fighting between sequential print clearance regions and objects
2021-05-14 11:13:46 +02:00
enricoturri1966
2cf5f83bb6
Tech ENABLE_SEQUENTIAL_LIMITS -> Do not show sequential print clearance regions while any gizmo is active
2021-05-14 10:52:18 +02:00
enricoturri1966
214f7bd092
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_sequential_limits
2021-05-14 10:20:15 +02:00
enricoturri1966
e0dd7edb21
Removed obsolete method from GLVolumeCollection
2021-05-13 14:56:35 +02:00
enricoturri1966
6bddacee44
Fixed conflicts after merge with master
2021-05-13 14:10:42 +02:00
enricoturri1966
e330b66981
Small refactoring
2021-05-13 13:57:09 +02:00
enricoturri1966
d54548367a
Fixed imgui out of synch with mouse after switching between preview and 3D view
2021-05-13 10:59:13 +02:00
YuSanka
044634d7d1
Fixed "Extruder sequence", when extruder changes are per mm
2021-05-13 09:50:09 +02:00
Lukas Matena
707ce9d3d4
Added a missing include (gcc)
2021-05-12 17:04:36 +02:00
YuSanka
4be1d62259
Fixed update of the "Supports" in frequently used parameters when Vase mode is selected
2021-05-12 15:54:20 +02:00
enricoturri1966
62772060f9
Tech ENABLE_SEQUENTIAL_LIMITS -> Do not show clearance regions while dragging an object
2021-05-12 14:56:14 +02:00
enricoturri1966
bc9fa18044
Tech ENABLE_SEQUENTIAL_LIMITS -> Fixed z-fighting between contours and fill
2021-05-12 14:35:57 +02:00
enricoturri1966
3006213d3b
Removed obsolete member variable from Canvas3D::Slope
2021-05-12 14:25:13 +02:00
enricoturri1966
0d37f66f61
Tech ENABLE_SEQUENTIAL_LIMITS -> Improved rendering of clearance regions
2021-05-12 13:09:33 +02:00
YuSanka
82da1f8fc1
Code cleaning: Delete workaround code
2021-05-12 11:43:36 +02:00
enricoturri1966
ebe762f177
Add estimated printing time for first layer in legend
2021-05-12 11:21:18 +02:00
YuSanka
de1d36cc9a
Probably fix for #6270 - Segfault during startup in prusa-slicer-git 2.3.0.r24.gd06aa6069-1
2021-05-11 18:03:57 +02:00
enricoturri1966
b875fd2755
Fixed project dirty state after changing language
2021-05-11 15:01:33 +02:00
enricoturri1966
75677ba810
Tech ENABLE_SEQUENTIAL_LIMITS -> 1st installment of visualization of objects clearance for sequential prints
2021-05-11 13:12:25 +02:00
Oleksandra Yushchenko
ab886e037b
Implementation for #6216
...
* Implementation for #6216 - Make number keys select extruder when object treeview has focus
+ deleted unused extruder_selection()
+ Fixed notification after splitting of the solid object
* Follow up 85a10268b9
- OSX implementation
+ Added shortcuts description to the "Keyboard Shortcuts" dialog
* Workaround to use "+/-" and numbers shortcuts on Linux
+ Fixed build on Linux
* OSX specific: fixed a work of keyboard accelerators from numbers on NumPad keyboard
* KBShortcutsDialog: fixed shortcuts for "Preferences" and "Show/Hide 3Dconnexion devices settings dialog, if enabled" under osx
and "Set Printable/Unprintable" and "Set extruder" under Linux
+ OSX specific: Added minimize of the application on "Cmd+M"
* Hot-fix for 6efeb9d6b4
* Removed Linux specific workaround
2021-05-11 11:02:12 +02:00
enricoturri1966
13b0757b8b
Tech ENABLE_REDUCED_TOOLPATHS_SEGMENT_CAPS set as default
2021-05-11 10:28:04 +02:00
David Kocik
fabaee10a8
Additional controls in NotificationManager
2021-05-11 09:35:25 +02:00
David Kocik
d701b24bc0
Fix of crash when notification text + hypertext wont fit line length
2021-05-11 09:35:25 +02:00
YuSanka
b87c03fc09
Linux specific: Fixed ObjectDataViewModel::GetColumnType()
...
When "string" type was returned, strange editing TextControl was appeared.
+ Added check of the selection for ObjectList::toggle_printable_state() function
2021-05-10 17:57:44 +02:00
enricoturri1966
426d2cd725
Tech ENABLE_WARNING_TEXTURE_REMOVAL set as default
2021-05-10 16:05:16 +02:00
enricoturri1966
ca8a42c8b1
Tech ENABLE_SPLITTED_VERTEX_BUFFER set as default
2021-05-10 14:45:17 +02:00
enricoturri1966
137dbbd19f
Fixed crash into ProjectDirtyStateManager::update_from_undo_redo_stack() when switching language
2021-05-10 13:06:13 +02:00
YuSanka
a49d34c6f3
Fix of #5437 - Make it clear on the G-code slider that color change is not supported for sequential print
2021-05-10 12:10:41 +02:00
enricoturri1966
f786d9c96e
Fixed conflicts after merge with master
2021-05-10 10:25:57 +02:00
Vojtech Bubnik
5828decfc7
Fixing multi-material printing after recent refactoring ( d21b9aa
to 1c6333e
)
2021-05-10 09:32:24 +02:00
YuSanka
f11b9a5b6a
DiffPresetDialog: Fixed update of the related presets after changing selection of the Printer preset
2021-05-07 16:46:09 +02:00
enricoturri1966
89da02734e
ENABLE_ALLOW_NEGATIVE_Z -> Ensure objects on bed when switching to SLA printer
2021-05-07 15:08:07 +02:00
enricoturri1966
62ad1904e2
Fixed warnings into DoExport
2021-05-07 14:46:10 +02:00
enricoturri1966
f1cb529a7b
Fixed warnings into ProjectDirtyStateManager
2021-05-07 14:17:17 +02:00
enricoturri1966
389955966c
Disabled tech ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
2021-05-07 13:42:53 +02:00
enricoturri1966
ec9c3891cf
Fixed conflicts after merge with master
2021-05-07 13:14:11 +02:00
Lukáš Hejl
4d2c2070f8
Added missing includes (GCC 9.3)
2021-05-07 12:51:10 +02:00
YuSanka
b9910669e8
Fix of #2825 - Add the length of each filament used
2021-05-07 12:48:34 +02:00
enricoturri1966
56aa45fa1f
Fixed typo
2021-05-07 12:48:34 +02:00
enricoturri1966
c602e655e0
Tech ENABLE_SCROLLABLE_LEGEND -> Fixed layout of scrollable sub panels
2021-05-07 12:48:34 +02:00
enricoturri1966
49503db65e
Tech ENABLE_SCROLLABLE_LEGEND -> Set legend max height
2021-05-07 12:48:34 +02:00
enricoturri1966
ddf59a4a8c
Tech ENABLE_SCROLLABLE_LEGEND -> 1st installment of scrollable legend
2021-05-07 12:48:34 +02:00
YuSanka
96447de1d4
ConfigWizard:: Use wxTextCtrl instead of wxDoubleSpinCtrl for nozzle and filament diameters
2021-05-07 12:22:54 +02:00
Vojtech Bubnik
5c35fa4539
Commenting source of Polygon::centroid() algorithm
2021-05-07 11:54:25 +02:00
Vojtech Bubnik
52b3c655ff
Fixed Polygon::centroid()
...
Ported Polygon unit tests from Perl to C++.
2021-05-07 11:42:21 +02:00
David Kocik
9cfcba78f7
text fix
2021-05-07 09:01:57 +02:00
David Kocik
963849e18b
desktop integration functions and dialog
2021-05-07 09:01:57 +02:00
Vojtech Bubnik
68fabfea62
Fix of Polygon::area().
2021-05-07 09:45:27 +02:00
Vojtech Bubnik
feefbc575a
Refactored PrintObject::m_region_volumes for extensibility.
...
WIP for multi-material painting.
2021-05-06 15:48:38 +02:00
Vojtech Bubnik
dd72016159
FDM backend refactoring for const correctness, clarity ...
2021-05-06 15:08:57 +02:00
Vojtech Bubnik
b5573f959b
Refactoring for code clarity: Replaced this->m_xxx with m_xxx
...
as the m_ prefix already signifies a class local variable.
2021-05-06 14:43:36 +02:00
Vojtech Bubnik
f16d4953be
Removing offset2 from Perl bindings and other minor cleanup.
2021-05-06 14:29:20 +02:00
enricoturri1966
ff632a9ff2
Tech ENABLE_ALLOW_NEGATIVE_Z-> Disable sinking objects for SLA printer
2021-05-06 14:04:07 +02:00
Vojtech Bubnik
0ca6b12da1
Print/PrintObject/PrintRegion refactoring:
...
Newly the PrintObjects own PrintRegions and Print contains references
to PrintRegions owned by PrintObjects, so that a PrintRegion of the same
content is referenced by Print only once.
The refactoring is a WIP to support multi-material painting.
2021-05-06 13:01:09 +02:00
enricoturri1966
123c5af347
#6473 - Update titlebar when opening a project file by double-clicking the file icon
2021-05-06 10:11:53 +02:00
Vojtech Bubnik
ee15f00574
FDM backend refactoring: Return PrintRegion by reference, not by pointer.
...
Added PrintRegion hashing.
2021-05-05 18:13:58 +02:00
Vojtech Bubnik
714149dab2
WIP: Moving ownership of PrintRegions to PrintObjects.
2021-05-05 16:21:55 +02:00
Vojtech Bubnik
a7c67415c7
Another try of fixing compilation on gcc.
2021-05-05 14:34:54 +02:00
Vojtech Bubnik
18001fbb4e
Fixing compilation on gcc
2021-05-05 14:32:19 +02:00
Vojtech Bubnik
d6c5961eb0
Factored out the Print::apply() method and its dependending free functions
...
into PrintApply.cpp module.
2021-05-05 14:30:09 +02:00
Vojtech Bubnik
72ce8cb28d
PrintRegion refactoring: Getting rid of the Print pointer.
2021-05-05 14:17:36 +02:00
Vojtech Bubnik
a2de09e11e
Fixing unit tests.
2021-05-05 13:19:01 +02:00
enricoturri1966
a91306032c
Project dirty state manager -> Fixed crash when loading/saving a 3mf file
2021-05-05 13:17:20 +02:00
Vojtech Bubnik
7d4b3f2992
Fix of safety_offset() after ClipperUtils refactoring.
...
Fixes Solid infill where there should be none #6482
Also the safety offsetting was revised to be enabled only where needed,
the "do safety offset" is now easy to discover by
a new ApplySafetyOffset::Yes enum, and safety offset over union, which
is better done by offset() / offset_ex() has been replaced with
new union_safety_offset() / union_safety_offset_ex() functions, which
better convey their meaning and which could be better optimized than
union() with the safety offset applied.
2021-05-05 12:16:47 +02:00
enricoturri1966
bb18edde0a
Tech ENABLE_ALLOW_NEGATIVE_Z-> Synchronize sinking instances
2021-05-05 11:53:24 +02:00
enricoturri1966
3f6123e653
Tech ENABLE_ALLOW_NEGATIVE_Z-> Added button in object manipulator to drop to bed a sinking object
2021-05-05 09:15:33 +02:00
Vojtech Bubnik
fd3dd1611c
Fixed alignment of sparse infill over multiple layers of the same region,
...
which was broken with 68666de521b1cb15e41ac6728c0e8d3b4b0d4ed0
"Reworked the "new" bridging to respect the bridge_flow_ratio
by maintaining extrusion spacing, but modifying the extrusion width
and / or height."
2021-05-04 18:27:53 +02:00
Vojtech Bubnik
00835c7367
Fixing compilation on clang in debug mode.
2021-05-04 16:13:40 +02:00
Vojtech Bubnik
1aef86f650
Implemented generic mechanism for executing tasks on UI thread synchronously
...
from the background slicing thread, that supports cancellation.
The generic mechanism is used for generating thumbnails into G-code and
Fixes Fix deadlock when canceling the slicing while gcode is creating thumbnails #6476
Thanks @supermerill for pointing out the issue.
2021-05-04 16:07:32 +02:00
enricoturri1966
67572fad3f
Tech ENABLE_ALLOW_NEGATIVE_Z-> Keep sinking objects and instances as sinking after copy/paste or add instance commands
2021-05-04 14:48:30 +02:00
YuSanka
4fe6f726de
ObjectList: Fixed update of the selection, when some gizmo in 3D-Scene is activated
2021-05-04 14:20:19 +02:00
enricoturri1966
cb294e0b3e
Follow-up of 15c32d636d
-> Small refactoring
2021-05-04 13:31:07 +02:00
enricoturri1966
15c32d636d
Seams detection for gcode saved with other slicers
2021-05-04 12:45:51 +02:00
Vojtech Bubnik
5cc6dc59dc
Fixed compilation with GCC
2021-05-04 11:22:38 +02:00
Vojtech Bubnik
a7368b9deb
Fixing thread-safe StaticConfig creations #6477
...
fix un-threadsafe code for creating config enum hashtable. #6475
2021-05-04 11:03:26 +02:00
Lukáš Hejl
46a14abbaa
Added default object color in MMU segmentation according to the default extruder color for printing the object.
2021-05-04 08:13:04 +02:00
Lukáš Hejl
781e6607c8
Fixed updating of extruders list in MMU segmentation gizmo after adding extruders and reloading 3MF with different extruder count and colors.
2021-05-04 07:59:16 +02:00
Lukáš Hejl
71c60a5187
Follow-up of 168b4afbc2
: Replaced forgotten lslices in the top and bottom layer propagation in MMU segmentation.
2021-05-03 22:11:04 +02:00
Lukáš Hejl
cd5fea8b42
Fixed compiler warnings
2021-05-03 21:50:40 +02:00
Lukáš Hejl
2d3eef4e84
Fixed possible warnings
2021-05-03 21:13:13 +02:00
Lukáš Hejl
fa8c319721
Fixed MMU segmentation for cases when a contour was whole colored by one color and a hole was whole colored by a different color.
2021-05-03 21:06:46 +02:00
Lukáš Hejl
5bfdaa7ac8
Parallelization of regions merging for MMU segmentation.
2021-05-03 21:01:52 +02:00
Lukáš Hejl
2e9f0d6eaf
Fixed a few cases of missing colored segments in MMU segmentation.
...
Occasionally, some input polygons contained self-intersections that caused problems with Voronoi diagrams and consequently with the extraction of colored segments by function extract_colored_segments.
Also, occasionally input polygons contained several points very close together (distance between points is 1 or so). Such close points sometimes caused that the Voronoi diagram has self-intersecting edges around these vertices. This consequently leads to issues with the extraction of colored segments by function extract_colored_segments.
2021-05-03 20:56:39 +02:00
Lukáš Hejl
168b4afbc2
Fixed MMU segmentation for multi-volume objects.
...
MMU segmentation no longer works directly on lslices, instead of it works on custom merged regions. So lslices in PrintObject are no longer overwritten because of MMU segmentation.
All regions are scaled by SCALED_EPSILON before merging and shrunk back by SCALED_EPSILON after merging. That fixed issues with multi-volume objects when very close regions weren't merged.
Also, small expolygons and holes are filtered out that fixed missing segmentation at the boundary of two volumes in the case of multi-volume objects.
2021-05-03 20:37:14 +02:00
enricoturri1966
ede14251b1
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_project_dirty_state
2021-05-03 16:05:22 +02:00
enricoturri1966
164af0255a
Tech ENABLE_ALLOW_NEGATIVE_Z -> Keep sinking objects as sinking after reload from disk
2021-05-03 16:02:06 +02:00
enricoturri1966
57199b4116
Tech ENABLE_ALLOW_NEGATIVE_Z-> Fixed build on non-Windows OS
2021-05-03 15:47:16 +02:00
Vojtech Bubnik
ab74ea5c90
One more fix after merge.
2021-05-03 15:30:10 +02:00
Vojtech Bubnik
2aadc1cefa
Fixing after merge.
2021-05-03 15:28:03 +02:00
Vojtech Bubnik
eb66111eda
Merge branch 'vb_clipper_optimization'
2021-05-03 15:24:04 +02:00
Vojtech Bubnik
ef07644bf2
Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer
2021-05-03 15:23:57 +02:00
Vojtech Bubnik
7563c885a1
Fixing compiler warnings
2021-05-03 15:00:23 +02:00
enricoturri1966
1c3090b11f
Tech ENABLE_ALLOW_NEGATIVE_Z-> Layers height editing related fixes
2021-05-03 14:28:55 +02:00
Vojtech Bubnik
96f8744e05
Another fix for C++ conformant compilers
2021-05-03 11:55:23 +02:00
Vojtech Bubnik
c7c7983e77
Fixing compilation on C++ conforming compilers
2021-05-03 11:50:05 +02:00
Vojtech Bubnik
09a80d954c
Further rework of ClipperUtils: Replaced many to_polygons() /
...
to_expolygons() calls with templated ClipperUtils variants to avoid
memory allocation and copying.
2021-05-03 11:39:53 +02:00
Lukáš Hejl
62592cab48
Added missing include (GCC 11.1)
2021-05-01 22:33:59 +02:00
YuSanka
c414f932d4
Fixed a bug with selection from the 3D-scene when ObjectSettings item is selected in ObjectList
...
Steps to repro:
1. Add 2 objects, add Settings for some of object -> Object Settings item is selected
2. In the 3D-scene select another object -> BUG: no changes in the ObjectList
2021-04-30 16:56:18 +02:00
YuSanka
4ffbd027d0
OSX specific: Fixed scale of the frequently settings, when extra display is connected
2021-04-30 16:49:13 +02:00
Lukáš Hejl
0a8a3f6d8c
Fixed build on Windows.
2021-04-30 15:40:27 +02:00
Lukáš Hejl
d11d15aa1e
Rework of MMU segmentation gizmo to support more than three colors.
2021-04-30 15:58:25 +02:00
enricoturri1966
395164c7a1
Fixed conflicts after merge with master
2021-04-30 14:54:58 +02:00
Lukas Matena
95f5b82d6a
Improved MM priming lines placement on circular beds ( #6459 )
2021-04-30 13:11:33 +02:00
Vojtech Bubnik
9fbba855ef
Clipper optimization:
...
1) Removed the already commented-out scaling / unscaling when doing
"safe offsetting"
2) Removed some of the "safe offsetting" at calls where it never was used.
3) Reworked Clipper & ClipperUtils to pass Polygons / ExPolygons / Surfaces
as input parameters without conversion to ClipperLib::Paths. This
should save a lot of memory allocation and copying.
4) Reworked conversions from ClipperLib::Paths & PolyTree to Polygons /
ExPolygons to use the move operator to avoid many unnecessary allocations.
5) Reworked some "union with safe ofsetting" to "offset_ex", which should
be cheaper.
2021-04-30 11:49:57 +02:00
enricoturri1966
28d01542ed
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_custom_gcode_detection
2021-04-29 11:07:47 +02:00
Vojtech Bubnik
b327314b02
Layer::make_perimeters() - when merging regions, use OffsetEx instead
...
of safety offset of UnionEx, which may not be robust.
2021-04-29 11:05:11 +02:00
enricoturri1966
3a28fe62b5
Fixed missing ending cap for toolpaths having a single segment
2021-04-29 09:09:49 +02:00
enricoturri1966
9086542a08
Follow-up of 2c6472ebc3
-> Ensure backward compatibility
2021-04-28 16:06:49 +02:00
enricoturri1966
a3f03ac188
Tech ENABLE_ALLOW_NEGATIVE_Z->Keep as sinking objects saved in project files
2021-04-28 16:02:51 +02:00
enricoturri1966
1863d622b5
Changed order of rendering of sidebar hints to avoid artifacts due to depth buffer cleanup made by gizmo renderers
2021-04-28 13:58:16 +02:00
enricoturri1966
c58572deaa
Tech ENABLE_ALLOW_NEGATIVE_Z->Fixed object popping up after editing layer range fields
2021-04-28 11:07:15 +02:00
enricoturri1966
a83cd647da
Small refactoring in GLCanvas3D::LayersEditing
2021-04-28 08:49:32 +02:00
enricoturri1966
7ae77c06d0
Tech ENABLE_SEAMS_VISUALIZATION -> Added threshold to place seams
2021-04-27 15:12:45 +02:00
enricoturri1966
15f376e468
Tech ENABLE_SEAMS_VISUALIZATION -> Fixed build on Mac
2021-04-27 11:11:21 +02:00
enricoturri1966
2c6472ebc3
Replace label Skirt with Skirt/Brim in preview legend
2021-04-27 10:46:42 +02:00
enricoturri1966
076fdc90c0
Tech ENABLE_SEAMS_VISUALIZATION -> 1st installment of seams visualization in preview
2021-04-27 09:45:15 +02:00
Lukáš Hejl
576c5b78e9
Added seed fill for MMU segmentation
2021-04-27 06:48:09 +02:00
Lukáš Hejl
be1b4ce18c
Fixed compiler warnings
2021-04-27 00:41:20 +02:00
Lukáš Hejl
8a19cf9d64
Extended support of MMU segmentation backed for more than three colors.
...
Serialization and deserialization in TriangleSelector were extended to support up to 16 materials (3 unused states left for possible later extension). These changes also affect the encoding of data from custom supports and seams, but it is backward compatible with the previous encoding. And for custom supports and seams, it is produced exactly the same data encoding as before.
2021-04-27 00:37:49 +02:00
Lukáš Hejl
db55bd706e
Fixed case in MMU segmentation when the infinity-edge in the Voronoi diagram has vertex0(), and vertex1() equals nullptr.
2021-04-27 00:36:22 +02:00
Lukáš Hejl
1b144e80bd
Added hiding of MMU segmentation gizmo when it is selected printer with only one extruder.
2021-04-27 00:35:43 +02:00
Lukas Matena
da702ab135
Fixed a memory leak when repairing an external stl
2021-04-26 20:45:43 +02:00
Lukas Matena
978b359492
Fix normal direction when exporting STL ( #6406 )
...
The export function does not depend on Model/ModelObject::mesh() family of functions,
changing them might break the already too brittle code.
2021-04-26 19:58:08 +02:00
Vojtech Bubnik
d1cfdcb49e
Refactoring of StaticPrintConfig & derived classes:
...
1) Using boost::preprocessor to reduce code duplicities when defining
new configuration values.
2) Implemented static hash() and operator== on StaticPrintConfig derived
classes to support hash tables of instances thereof.
2021-04-26 18:37:10 +02:00
Lukas Matena
5783cc62fb
Wipe tower priming lines are placed at origin with custom bed shapes
...
Custom shapes were previously detected as circular and the lines were placed off the bed
2021-04-26 09:21:18 +02:00
Vojtech Bubnik
9f4e9da5c6
Merge branch 'tm_vb_clipper_eigen'
2021-04-23 11:44:25 +02:00
enricoturri1966
b600540411
Tech ENABLE_ALLOW_NEGATIVE_Z -> Keep sinking instances as sinking after applying scale gizmo
2021-04-23 09:11:55 +02:00
enricoturri1966
d4695827ce
Tech ENABLE_ALLOW_NEGATIVE_Z -> Keep sinking instances as sinking after applying rotate gizmo
2021-04-23 08:29:29 +02:00
enricoturri1966
70ec034281
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_custom_gcode_detection
2021-04-22 15:30:27 +02:00
enricoturri1966
52583bbe30
Extrusions in custom start g-code forced to be at first layer height level
2021-04-22 15:15:19 +02:00
enricoturri1966
8f385aac44
Tech ENABLE_ALLOW_NEGATIVE_Z -> Shading of sinking instances
2021-04-22 13:18:36 +02:00
Vojtech Bubnik
38bb7d2950
1) New methods PrintObject::num_regions() and ::has_region() to make
...
the code more readable and to highlight where PrintObject::region_volumes
are actually set and consumed.
2) Replaced Slic3r::clamp() with std::clamp(). They differ in the order
of their parameters, thus hopefully no new bugs were introduced.
3) Some refactoring of MultiMaterialSegmentation for efficiency.
2021-04-22 11:41:26 +02:00
tamasmeszaros
ea26581959
Move iterator stuff from polygon to multipoint
2021-04-22 09:44:08 +02:00
Vojtech Bubnik
3b86cb3a3c
Added missing files
2021-04-22 09:26:07 +02:00
Vojtech Bubnik
8d0950ce12
Convincing ClipperLib to use Slic3r's own Point type internally.
2021-04-21 20:15:49 +02:00
tamasmeszaros
a15c16d40d
Use new libnest backend for MinAreaBoundingBox wrapper
2021-04-21 17:21:43 +02:00
tamasmeszaros
657d19482b
Minor code refinements
2021-04-21 16:49:11 +02:00
tamasmeszaros
d069591514
Write hollow flag to SL1 files if any object is hollowed.
2021-04-21 16:29:12 +02:00
tamasmeszaros
dca67822d1
Eliminate warnings caused by changes to aid new libslic3r backend
2021-04-21 16:02:31 +02:00
tamasmeszaros
ad19ab219d
New custom backend for libnest2d using libslic3r types
...
Adapted to new clipper->eigen mod
2021-04-21 16:02:25 +02:00
enricoturri1966
82d577645e
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_custom_gcode_detection
2021-04-21 14:52:52 +02:00
Vojtech Bubnik
0c1953a929
Further fixes of the first_layer_height refactoring.
2021-04-21 14:34:49 +02:00
YuSanka
4ce7ea40f0
Updated splashscreen images
2021-04-21 13:49:24 +02:00
enricoturri1966
c8b83ae011
Tech ENABLE_ALLOW_NEGATIVE_Z -> Allow move gizmo to place an object under the printbed
2021-04-21 12:41:43 +02:00
enricoturri1966
c7771a576b
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_custom_gcode_detection
2021-04-21 12:32:17 +02:00
Vojtech Bubnik
d9ed9149ae
1) Moved first_layer_heigth frrom PrintObjectConfig to PrintConfig.
...
Thus the first_layer_height is no more object specific. That makes
a lot of sense due to the brim calculation being performed over
all layers at once and due to future merging of supports of
different objects at first layer.
2) Because now first_layer_height is print specific, the relative
first layer height derived from the object layer height was partially
disabled: First the relative first layer height is converted to
an absolute value when importing config, second the side text
was changed from "mm or %" to "mm". Still the UI allows entering %.
Both changes may be controversial, let's wait for user feedback.
2021-04-21 12:09:43 +02:00
Lukáš Hejl
49928e131c
Added missing include (GCC 9.3)
2021-04-21 06:08:46 +02:00
enricoturri1966
9cd5ba13f2
Some refactoring into ProjectDirtyStateManager
2021-04-20 16:07:39 +02:00
Vojtech Bubnik
4f950343c8
MMU segmentation refactoring: Most of the MMU segmentation code
...
was extracted to its own file.
2021-04-20 15:07:05 +02:00
Lukas Matena
bf1fc7d436
Info in ObjectList: Added variable layer height
2021-04-20 15:07:05 +02:00
Lukas Matena
e48bc7a5e8
Info in ObjectList: Settings should be above the new info items, info items are selectable
2021-04-20 15:07:05 +02:00
Lukas Matena
61528cbdc8
Show info about custom supports and seam in ObjectList
...
Slight refactoring in GLGizmosManager so it is easier to open a gizmo from the ObjectList
2021-04-20 15:07:05 +02:00
enricoturri1966
6be2a1be2c
Removed mutable members from class GLVolume
2021-04-20 12:55:23 +02:00
enricoturri1966
0e3090fb28
Removed mutable members from class GLCanvas3D
2021-04-20 12:16:55 +02:00
enricoturri1966
b0bb1e7b1d
Removed mutable members from class OpenGLManager::GLInfo
2021-04-20 11:42:34 +02:00
enricoturri1966
f486dedb52
Disabled tech ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
2021-04-20 10:41:38 +02:00
David Kocik
453884f908
Check of correct suffix during PrintHostSend dialog.
2021-04-20 09:18:50 +02:00
David Kocik
429675db2d
Error appearance of upload notification and dividing lines with lesser impotance of spaces
2021-04-20 09:18:50 +02:00
David Kocik
d7b385f144
compare upload notification by id and not show id in text
2021-04-20 09:18:50 +02:00
David Kocik
fb645c6394
two line text for upload progress bar notification
2021-04-20 09:18:50 +02:00
David Kocik
c140974bf4
Changed ToolpathOuside error notification from plater to slicing error notification type so it is grayed out correctly
2021-04-20 09:18:50 +02:00
David Kocik
9118de4e3c
Upload notification text fix
2021-04-20 09:18:50 +02:00
David Kocik
78e61eddf8
typo fix
2021-04-20 09:18:50 +02:00
David Kocik
441cf62ad3
fix of notification states and upload progress bar notification fadeout
2021-04-20 09:18:50 +02:00
enricoturri1966
c691464659
Project dirty state manager -> Improvements update of plater dirty state after save commands
2021-04-20 09:09:06 +02:00
enricoturri1966
3e09334162
Removed mutable members from class Bed3D
2021-04-20 08:53:56 +02:00
Lukáš Hejl
40d9e51b5e
WIP: Added support for top and bottom layers for MMU segmentation.
2021-04-19 19:21:06 +02:00
Lukas Matena
dfe926ef63
Info in ObjectList: Added variable layer height
2021-04-19 16:10:40 +02:00
Lukas Matena
df3fb31268
Info in ObjectList: Settings should be above the new info items, info items are selectable
2021-04-19 16:10:40 +02:00
Lukas Matena
548ceb7acc
Show info about custom supports and seam in ObjectList
...
Slight refactoring in GLGizmosManager so it is easier to open a gizmo from the ObjectList
2021-04-19 16:10:40 +02:00
Lukáš Hejl
368b48b0a0
WIP: Allows regions of MMU segmentation to be trimmed by chosen width.
2021-04-19 07:12:42 +02:00
Lukáš Hejl
f49ceb1e0f
WIP: MMU segmentation without top and bottom layers
2021-04-19 07:04:50 +02:00
Lukáš Hejl
e3c33844d5
WIP: Duplicated the FDM support gizmo for the MMU segmentation
2021-04-19 07:01:11 +02:00
enricoturri1966
4da8de5f49
Removed mutable members from class GLToolbar
2021-04-16 15:49:37 +02:00
enricoturri1966
4c464b35f9
Removed mutable members from class Selection
2021-04-16 15:25:03 +02:00
enricoturri1966
a393df59d7
Further refactoring into struct Camera
2021-04-16 14:05:55 +02:00
enricoturri1966
074a44833e
Removed mutable members from struct Camera
2021-04-16 13:44:01 +02:00
enricoturri1966
dabac92755
Fixed flickering of 3D scene GUI when the scene's bounding box gets very big
2021-04-16 12:49:57 +02:00
enricoturri1966
66f6c8c786
Fixed conversion to utf8 of strings entered using Custom G-code dialog
2021-04-16 09:48:22 +02:00
enricoturri1966
ce73671f47
Project dirty state manager -> Improvements to management of gizmos dirty state
2021-04-16 09:36:19 +02:00
Vojtech Bubnik
48a93e40fb
After issuing the color change custom G-code, which is most likely
...
just M600, reset the internal retract counter, so that a retract
will happen after the firmware returns from M600 to the initial position.
Fixes "Blobs on print after manual color change #6362 "
2021-04-15 16:29:30 +02:00
enricoturri1966
8c3d098ff6
Project dirty state manager -> management of gizmos dirty state WIP
2021-04-15 15:19:03 +02:00
Vojtech Bubnik
eb428d48fc
Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer
2021-04-15 13:48:29 +02:00
Vojtech Bubnik
d5ddf8b00e
RemovableManager on OSX: Testing for dictionary values for nullness.
...
Hopefully it fixes Can not start slicer on mac Bigsur #5719
2021-04-15 13:48:20 +02:00
tamasmeszaros
64ec319017
Fix for arrange crash when geometry has zero length segments
...
fixes #5749
2021-04-15 13:23:35 +02:00
enricoturri1966
1e69e6def1
Follow-up of 526233ca47
-> Take in account original instances scale factor
2021-04-15 08:41:20 +02:00
enricoturri1966
526233ca47
Modified version of automatic downscale on load of objects too big
2021-04-14 14:46:49 +02:00
Vojtech Bubnik
0625788583
Fixed obvious bug in move operator, discovered by clang lint ran by Tamas.
2021-04-14 14:25:30 +02:00
Vojtech Bubnik
7112ac61b6
Replacing ClipperLib::IntPoint with Eigen point as a first step to
...
make the ClipperLib paths and polygons compatible with Slic3r paths
and polygons without conversions and memory allocations.
2021-04-14 09:22:51 +02:00
Lukas Matena
8845b0245a
Fixed build against wxWidgets 3.0
2021-04-14 07:05:12 +02:00
Vojtech Bubnik
29cd8aac26
WIP: Fix of arrangement after reducing ClipperLib::cInt
...
from int64_t to int32_t
2021-04-13 16:35:46 +02:00
Vojtech Bubnik
c1179fc2c7
Marked the unsafe ClipperUtils offset functions with CLIPPERUTILS_UNSAFE_OFFSET
...
Replaced some of the unsafe offset functions with safe variants.
Please test the
1) print bed from STL function
2) concentric infill
2021-04-13 13:28:37 +02:00
Vojtech Bubnik
e8643125d8
Clipper / ClipperUtils:
...
1) Let Clipper use int32_t for representing its coordinates. This
reduces memory and allows to skip conversion between Slic3r Polygon
and Clipper polygon.
2) Disable additional offset before executing the Clipper Offset algorithm.
We don't see any reason for that and it required 64bit Clipper coordinates,
which were disabled with 1).
2021-04-13 11:31:54 +02:00
Vojtech Bubnik
dbd1c09523
FDM snug supports: New parameter "closing radius", inspired by Cura's
...
support_join_distance
2021-04-12 14:56:36 +02:00
Lukas Matena
e1619e2ff1
Fixed a typo in an error message (--sw_renderer -> --sw-renderer)
2021-04-12 09:15:28 +02:00
enricoturri1966
94b28f9b8d
Do not use custom gcode in out of bed detection
2021-04-10 11:07:08 +02:00
enricoturri1966
fbde7de98a
Do not convert custom gcode extrusion to travel
2021-04-09 12:52:11 +02:00
enricoturri1966
e89a14c8a7
Project dirty state manager -> current gizmo dirty state
2021-04-09 08:26:48 +02:00
Vojtech Bubnik
558deca789
Configs should point to PrusaSlicer-alpha, not beta in alpha stage.
2021-04-09 08:11:40 +02:00
Vojtech Bubnik
ef6ce8792d
Fix of brim under supports
2021-04-08 16:36:52 +02:00
Vojtech Bubnik
8fd731f7a0
New FDM support sparse infill zig-zag algorithm.
...
Fixed some old support and infill issues.
Fixes support problem #4295
Fixes Parts of interface layer extends beyond supports and cannot be printed
Fixes support missing under horizontal overhang #6058
Fixes Slicer double-traces small sections of Rectilinear Supports, causes
Fixes plastic buildup and nozzle crashes #4951
Fixes Add "Angle Interface layers" #2969
2021-04-08 15:29:40 +02:00
tamasmeszaros
08ca5b29f0
Fix slow cancellation of rasterization step
...
fixes #6253
2021-04-08 14:36:37 +02:00
enricoturri1966
bfbc683a59
Follow-up of 926ecd0585
-> Improved management of plater dirty state
2021-04-07 14:26:04 +02:00
tamasmeszaros
e8af080346
Merge remote-tracking branch 'origin/tm_sl1_import_fix'
2021-04-07 13:56:14 +02:00
enricoturri1966
926ecd0585
Project dirty state manager -> plater dirty state
2021-04-07 12:58:14 +02:00
tamasmeszaros
9b47fb512e
Remove right click menu item for "optimize orientation"
2021-04-07 12:51:02 +02:00
tamasmeszaros
bed3321324
Small improvement to "least supports" method
2021-04-07 12:51:02 +02:00
tamasmeszaros
1663787b96
Better naming of gui controls
2021-04-07 12:51:02 +02:00
tamasmeszaros
649dfca8d6
Allow rotation of multiple selected items. Disable auto positioning
2021-04-07 12:51:02 +02:00
tamasmeszaros
804758dfed
Remove accuracy slicer
...
No practical use
2021-04-07 12:51:02 +02:00
tamasmeszaros
773116b777
Allow auto-rotation of objects not completely inside bed.
...
Don't use SLAPrintObject as the input for optimization. Use ModelObject and pass the print config to the optimization in RotoptimizeJob::prepare()
2021-04-07 12:51:02 +02:00
tamasmeszaros
5443f77489
Increase performance of "best misalignment" method
2021-04-07 12:51:02 +02:00
tamasmeszaros
4a9768cc7f
Change configuration bank name for SLA auto rotation
2021-04-07 12:51:02 +02:00
tamasmeszaros
33eec05f02
Tolerate corrupted appconfig settings for auto rotation
2021-04-07 12:51:02 +02:00
tamasmeszaros
e7f5c61bb8
Remove leftover debug message
2021-04-07 12:51:02 +02:00
tamasmeszaros
f3e3aabec7
Least supports optimization revived.
...
Fix missing include on Win32
Cleanup benchmarking code
2021-04-07 12:51:02 +02:00
tamasmeszaros
0194094afa
Method selection implemented
2021-04-07 12:51:02 +02:00
tamasmeszaros
4eb13a407f
Extend execution framework with convenience functions
2021-04-07 12:51:02 +02:00
tamasmeszaros
46fd722f3c
Unite cancel callback and status function
2021-04-07 12:51:02 +02:00
tamasmeszaros
de8bb00fa9
Speed up rotation optimizer
...
- No float to double conversion
- Solving issue of random (very similar) results due to the parallel summation of floats
2021-04-07 12:51:02 +02:00
tamasmeszaros
7760d3fbc4
Add new execution framework
...
Inspired by std::execution
2021-04-07 12:51:02 +02:00
tamasmeszaros
4293a68aaa
Reverting to old rotation optimizer object-function.
...
Keep the performance optimizations though
2021-04-07 12:51:02 +02:00
tamasmeszaros
3135e47180
Fix duplicated error message dialog from GUI jobs.
2021-04-07 12:41:52 +02:00
tamasmeszaros
9aac1b6fa5
Fix issue with importing sl1 files with non-ascii filenames.
2021-04-07 12:41:38 +02:00
YuSanka
effad844e2
MSW specific: Fixed update of the UI after system color change.
...
Note: the wxEVT_SYS_COLOUR_CHANGED event works only for high contrast settings under MSW.
+ ConfigSnapshotDialog: Fixed UI colors for dark mode on all platforms
2021-04-06 22:25:35 +02:00
enricoturri1966
edbb1d0f69
Project dirty state manager -> presets dirty state
2021-04-06 16:29:05 +02:00
Lukas Matena
9660d35f8c
An attempt to fix time estimates for 'Marlin (legacy)' flavor
...
Old M204 S sets both printing and travel accelerations, which must be
accounted for now when the latter was separated.
2021-04-06 15:45:49 +02:00
enricoturri1966
9b2d9fb01a
GCodeProcessor added travel acceleration
2021-04-06 15:45:49 +02:00
enricoturri1966
52af90ed8f
GCodeProcessor use new flavor gcfMarlinFirmware
2021-04-06 15:45:49 +02:00
Lukas Matena
8c89bf748b
Implemented new acceleration control behaviour for the new Marlin firmware flavor:
...
- show extra travel acceleration settings in 'Machine limits' page in Printer Settings
when the new firmware flavor is selected
- updated tooltips on the config values (they were basically wrong even in the current version)
- 'Marlin (legacy)' firmware flavor behaviour should not change: it exports M204 Pa Rb Ta
(where a, b are the values from machine limits) at the beginning of gcode and it uses
M204 S... for feature type dependent acceleration settings (legacy variant of M204 P.. T..)
- new Marlin Firmware exports M204 Pa Rb Tc (where a,b,c are the values from machine limits).
Feature type dependent acceleration is set using M204 P..., not overriding the travel acceleration.
2021-04-06 15:45:49 +02:00
Lukas Matena
f0e9ad46ec
Renamed the gcfMarlin enum value to gcfMarlinLegacy so we never mistake it for the new one
...
There should be no functional change.
2021-04-06 15:45:49 +02:00
Lukas Matena
151a76ee92
Duplicated Marlin firmware flavor to 'Marlin (legacy)' and 'Marlin Firmware'
...
The two flavors should be identical after this commit, except that GCodeProcessor.cpp was not updated. This shall be done in a later step.
2021-04-06 15:45:49 +02:00
Lukas Matena
58a811a638
Wipe tower: correctly detect first layer even with 'No sparse layers' option enabled
2021-04-06 15:37:39 +02:00
Lukas Matena
43d9e38325
Wipe tower: reorder extruders so first layer starts with soluble if possible
...
That way it will not be wiped on first layer
2021-04-06 15:37:39 +02:00
Lukas Matena
5d636ab853
Wipe tower: respect first_layer_speed
2021-04-06 15:37:39 +02:00
enricoturri1966
5d4b7c03b6
Extended interface of project dirty state manager
2021-04-06 13:17:29 +02:00
enricoturri1966
144e37c274
1st installment of project dirty state manager
2021-04-06 10:00:17 +02:00
Lukas Matena
3459231111
Wipe tower: set travel feedrate for a move from custom toolchange position to the wipe tower ( #5483 )
2021-04-05 23:39:27 +02:00
Lukas Matena
67bc2e472f
Wipe tower: fix wipe moves after recent changes
2021-04-05 23:39:27 +02:00
Lukas Matena
a6ddab856b
Wipe tower: refactoring of brim and solid infill on first layer
2021-04-05 23:39:27 +02:00
Lukas Matena
f6de946dd7
Wipe tower: don't use soluble filament for perimeters, sparse infill or first layer
2021-04-05 23:39:27 +02:00
Lukas Matena
3ed68ac28a
Wipe tower: slightly changed finish_layer logic so it can be called after any toolchange
2021-04-05 23:39:27 +02:00
Lukas Matena
cc7ef40e20
Wipe tower: remove unfinished square wipe tower option
2021-04-05 23:39:27 +02:00
Lukas Matena
97c4c02001
Wipe tower: don't do sparse infill when there is a soluble filament above it
2021-04-05 23:39:27 +02:00
tamasmeszaros
04526d5c28
Merge branch 'tm_libnest2d_backport'
2021-04-01 09:50:12 +02:00
enricoturri1966
194cab75d9
Refactoring in GCodeViewer
2021-04-01 08:24:19 +02:00
YuSanka
46e4f54fd0
Auto color change: next improvements
2021-03-31 15:10:48 +02:00
tamasmeszaros
f117d02750
Back-porting improvements for libnest2d
2021-03-31 09:36:54 +02:00
enricoturri1966
ab3890dab5
Follow-up of 3fce8398f0
- Fixed build warnings
2021-03-31 08:54:58 +02:00
Lukas Matena
7007bf665c
Added a missing include for gcc
2021-03-30 23:04:42 +02:00
YuSanka
c71fe03022
Fixed rescale for nodes with itInstanceRoot | itLayerRoot types
2021-03-30 18:26:28 +02:00
tamasmeszaros
fabb6716ee
Extend wx png and expat fixes for all of its built-in libraries
...
That means adding tiff and jpeg
2021-03-30 12:56:37 +02:00
enricoturri1966
3fce8398f0
Follow-up of 6ffa51da58
- Modified export of final M73 lines for remaining time to next printer stop accordingly to firmware specifications
2021-03-30 09:59:10 +02:00
Vojtech Bubnik
e94a4da954
Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer
2021-03-29 14:15:27 +02:00
Vojtech Bubnik
acce99f29b
Fixed some compilation warnings in MutablePolygon.cpp
2021-03-29 14:15:18 +02:00
YuSanka
45ac53efa1
Code refactoring to reduce switch statements on ConfigOptionEnum<> templates
2021-03-26 19:01:10 +01:00
YuSanka
2c23e25497
DoubleSlider: fix for 1c2d264570
2021-03-26 13:34:37 +01:00
enricoturri1966
68303059a6
Extract bed size from gcode produced with Simplify3d
2021-03-25 09:23:14 +01:00
YuSanka
3a5360651d
Added "Printable" menu item for multiple selection
2021-03-24 20:26:31 +01:00
enricoturri1966
cfcce6f29a
Follow-up of 10c3e82917
- Updated version for unpublished techs in Technologies.hpp
2021-03-24 14:30:46 +01:00
enricoturri1966
645e5b6862
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_extended_m73
2021-03-24 12:05:36 +01:00
enricoturri1966
9c951b3108
Fixed parsing of g-code files generated by newer versions of Simplify3D
2021-03-24 11:36:16 +01:00
YuSanka
8bc23c90fc
Suppress to show Search window on the Plater using Ctrl+F shortcut, when we are at Preview mode
2021-03-24 11:32:33 +01:00
Oleksandra Yushchenko
4496e2a8ce
Follow-up of 908c48ae6a
-> Fixed update after switching tab after editing custom g-code in settings tabs ( #6258 )
2021-03-24 11:20:57 +01:00
YuSanka
991fa67fd1
OptionsSearcher improvements: Fixed a key for option() and groups_and_categories.
...
It contains "preset_type;opt_key" now. This key helps to avoid a collisions by using a same options key from different type presets.
Example: Option "elefant_foot_compensation" is in Print presets and SLA_printer presets
2021-03-24 11:14:07 +01:00