Commit Graph

8794 Commits

Author SHA1 Message Date
Vojtech Bubnik
1c626e8596 New ClipperUtils functions: opening(), closing() as an alternative
for offset2() with clear meaning.
New ClipperUtils functions: expand(), shrink() as an alternative
for offset() with clear meaning.
All offset values for the new functions are positive.

Various offsetting ClipperUtils (offset, offset2, offset2_ex) working
over Polygons were marked as unsafe, sometimes producing invalid output
if called for more than one polygon. These functions were reworked
to offset polygons one by one. The new functions working over Polygons
shall work the same way as the old safe ones working over ExPolygons,
but working with Polygons shall be computationally more efficient.

Improvements in FDM support generator:
1) For both grid and snug supports: Don't filter out supports for which
   the contacts are completely reduced by support / object XY separation.
2) Rounding / merging of supports using the closing radius parameter is
   now smoother, it does not produce sharp corners.
3) Snug supports: When calculating support interfaces, expand the projected
   support contact areas to produce wider, printable and more stable interfaces.
4) Don't reduce support interfaces for snug supports for steep overhangs,
   that would normally not need them. Snug supports often produce very
   narrow support interface regions and turning them off makes the support
   interfaces disappear.
2021-10-14 09:11:31 +02:00
Lukáš Hejl
2f8e9f5af4 Fixed incorrect color assignment in multi-material segmentation caused by intersecting edges due to post-processing of Voronoi diagram.
This issue was occurring mainly on the cylinder objects.
2021-10-14 09:39:23 +02:00
David Kocik
15c87d5240 missing include and template type 2021-10-13 17:04:40 +02:00
David Kocik
ed471b1f41 Preferences: notify_relese option with Choice type Field.
OptionsGroup:: Added possibility of the right alignment of the controls
+ Added separator line to Preferences
2021-10-13 15:39:06 +02:00
enricoturri1966
c17004fba4 Fix in seams detection (restore detection after wiping) 2021-10-13 11:13:31 +02:00
YuSanka
4a975dd97a Auto color change: check overhangs lust from Preview when detecting auto color changes
+ fixed typo in equivalent_areas()
 + Added missed include
2021-10-12 15:23:50 +02:00
YuSanka
9b7225cf35 Follow-up cedfc5e3fb - Next code refactoring to avoid inconsistency between AutoColorChangeDetection in Preview and DoubleSlider 2021-10-12 14:18:39 +02:00
enricoturri1966
736d1c41ef Seams detection now takes in account for overhang perimeters 2021-10-12 12:03:34 +02:00
enricoturri1966
affcb311fa Revert of e28ebf9386 2021-10-12 11:49:51 +02:00
tamasmeszaros
bee6a41d72 Minor beautification 2021-10-12 10:55:23 +02:00
YuSanka
f4edcd7458 DoubleSlider: Code refactoring for auto color change 2021-10-12 10:47:21 +02:00
tamasmeszaros
6a327e00df Removing search for upstream miniz as its no longer compatible.
Due to 729298c408

fixes #7080
2021-10-12 09:59:59 +02:00
enricoturri1966
ee568857c9 Removed threshold to detect seams to be shown in preview 2021-10-12 09:53:23 +02:00
YuSanka
8a8ada38c9 Gallery: Fixed a naming of the added item with already existing name.
+ Fixed layout after add/delete item to/from Gallery
2021-10-11 11:21:27 +02:00
David Kocik
8c7562f082 Check version string for alpha and beta release versions.
Preferences setting to show / not show alpha beta releases.
2021-10-11 10:01:48 +02:00
YuSanka
624648f05f Win11 specific: Added workaround for implicit set of the dark mode 2021-10-11 09:54:38 +02:00
YuSanka
e9083556ee ObjectList: Fixed positioning of the object's part/modifiers when it's added
Use load_modifier() for everything without a respect to the type
2021-10-08 12:14:49 +02:00
enricoturri1966
848fdaadf4 #7076 - Modifiers and similar objects always rendered as transparent 2021-10-08 10:48:46 +02:00
Vojtech Bubnik
b642cf636f Reworded "Shape Gallery" menu and dialog title 2021-10-07 15:40:28 +02:00
Vojtech Bubnik
fd21659d67 Follow-up to 96b88f5b29
Fixed crash with zero support base spacing.
The bug fix was not correct and it disabled the new "zig-zag" sparse
infill generator, leading to GH issue #7014

Somehow improved missing interface layers for snug supports
by propagating full overhangs when generating interface layers.

Fixed generation of soluble interfaces for support enforcers,
where base support was used for steeper overhangs.

Disabled filtering out thin regions from the lower layer, that will
not be covered by perimeters, thus they are not supporting the current layer.
However this may lead to a situation where regions at the current layer
that are narrow thus not extrudable will generate unnecessary supports.
For example, see GH issue #3094
2021-10-07 15:39:44 +02:00
YuSanka
fc26a256b0 Follow-up fb3ed367ad : Fixed flickering of the wxProgressDialog during the model fixing 2021-10-07 14:04:15 +02:00
Lukáš Hejl
11247aa6ac Fixed a warning. 2021-10-07 13:36:06 +02:00
Lukáš Hejl
20ce0abd00 Optimized multi-material segmentation to construct Voronoi diagrams only for layers that have more than one color. If the whole layer is painted using the same color, it is not needed to construct a Voronoi diagram. 2021-10-07 13:16:21 +02:00
Lukáš Hejl
d2acd0c0a3 Renamed the brush "Pointer" to "Triangles" in the multi-material painting gizmo, and in the FDM supports painting gizmo. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
cb66737396 Fixed the positioning of the painting gizmos. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
6d88f89192 Added rendering of smart fill and contour around selected areas for the FDM supports painting gizmo. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
c25357969f Refactored rendering of the contour around areas selected by smart fill to prepare it for the FDM supports painting gizmo. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
379dbdf83f Prepared the FDM support gizmo for smart fill. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
4cf5c919b3 Improved the alignment of tool type and brush type in the multi-material gizmo. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
53772a19f6 Reworked seam painting gizmo to the same layout as multi-material painting gizmo. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
163d171541 Fixed the wrong calculation of caption text size in all painting gizmos, which could lead to showing unintended space after ImGui::SliderFloat. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
9a4759322e Removed unintended space after ImGui::SliderFloat in all painting gizmos. 2021-10-07 13:12:36 +02:00
Lukáš Hejl
4fb49fb39c Removed the vertical space in the below information about how to use gizmo for all painting gizmos. 2021-10-07 13:12:36 +02:00
YuSanka
cf624b081d Try to fix a focus for Application after closing of the "fix thought NetFab" ProgressBarDialog 2021-10-07 11:53:19 +02:00
YuSanka
6e976817e6 MSW specific:Added dark mode for G-CodeViewer 2021-10-07 11:53:19 +02:00
YuSanka
45406faf1c Added SVG-file for G-CodeViewer logo 2021-10-07 11:53:19 +02:00
enricoturri1966
5ccf850859 #6380 - Fixed non-uniform scaling of a volume using the sidebar fields 2021-10-07 10:37:49 +02:00
YuSanka
2a367f6774 Check if object's size appears to be zero, when loading the model file. 2021-10-07 09:12:31 +02:00
YuSanka
d83b2e0d3d ObjectList: Fixes
* Fixed update of a warning icon for multi-part object, when some part with errors was deleted
 * Fixed a crash when selecting non-Object and non-Volume item (in get_mesh_errors_info() was missed check of the obj_idx)

+ Follow-up 1cc7b4ba97 - some code refactoring:
  * fixed RepairedMeshErrors.merge()
  * get_mesh_errors_count() renamed to get_repaired_errors_count()
2021-10-06 17:24:40 +02:00
enricoturri1966
a1b312eb83 Follow-up of 2afdc66dfb - Added missing use case 2021-10-06 15:46:01 +02:00
enricoturri1966
492e6b8e51 #7068 - Automatic update of legend when switching on/off travel visibility in preview 2021-10-06 15:29:39 +02:00
YuSanka
46bff60e16 RichToolTips: Don't set a Timer for Tooltip but dismiss the tooltip when a mouse leave the button 2021-10-06 13:15:21 +02:00
David Kocik
76012e6021 Netfabb finished notification, fix of #7067 2021-10-06 13:07:38 +02:00
YuSanka
93317618dd Save/Load repaired errors from/to a mesh statistics to/from a 3MF 2021-10-06 10:57:28 +02:00
YuSanka
3dfe710b2c ObjectList: Fixed mouse click on the WarningIcon, when mesh wasn't repaired and isn't manifold. 2021-10-06 10:12:21 +02:00
YuSanka
cb570079ef Follow-up e2f2ed4172 and 80844ca337 - Allow RichToolTips just under MSW 2021-10-05 16:45:54 +02:00
YuSanka
216c2d2824 Localization: Updated POT 2021-10-05 16:31:04 +02:00
David Kocik
033f498b1f actualize warnings on empty background process 2021-10-05 15:52:44 +02:00
Lukas Matena
05ee30ed29 Show PrusaSlicer logo in the SendSystemInfoDialog 2021-10-05 15:36:00 +02:00
Lukas Matena
05fd0aec04 Disable the dialog before merge with master 2021-10-05 15:09:53 +02:00