Commit Graph

17415 Commits

Author SHA1 Message Date
enricoturri1966
33bbb249cf Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS set as default 2021-11-16 12:39:54 +01:00
Vojtech Bubnik
cce3410f59 Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2021-11-16 10:18:58 +01:00
Vojtech Bubnik
537df6b503 New BuildVolume class was created, which detects build volume type (rectangular,
circular, convex, concave) and performs efficient collision detection agains these build
volumes. As of now, collision detection is performed against a convex
hull of a concave build volume for efficency.

GCodeProcessor::Result renamed out of GCodeProcessor to GCodeProcessorResult,
so it could be forward declared.

Plater newly exports BuildVolume, not Bed3D. Bed3D is a rendering class,
while BuildVolume is a purely geometric class.

Reduced usage of global wxGetApp, the Bed3D is passed as a parameter
to View3D/Preview/GLCanvas.

Convex hull code was extracted from Geometry.cpp/hpp to Geometry/ConvexHulll.cpp,hpp.
New test inside_convex_polygon().
New efficent point inside polygon test: Decompose convex hull
to bottom / top parts and use the decomposition to detect point inside
a convex polygon in O(log n). decompose_convex_polygon_top_bottom(),
inside_convex_polygon().

New Circle constructing functions: circle_ransac() and circle_taubin_newton().

New polygon_is_convex() test with unit tests.
2021-11-16 10:15:51 +01:00
YuSanka
0598c91676 Fixed a crash when loading STL file (from 02c18dbc52)
+ Added info_icon next to the "Volume" value
2021-11-16 09:42:20 +01:00
rtyr
ab0596a114 Updated SLA material colors. 2021-11-16 08:02:28 +01:00
YuSanka
ee45aab6bd Sidebar: Info box: Fixed value of the "Volume"
+ Hidden "Materials" item
2021-11-15 17:36:01 +01:00
enricoturri1966
fbebab4156 #7066 - Ignore purge line in 'Volumetric Flow' display when Custom extrusion paths are set to invisible 2021-11-15 14:25:15 +01:00
David Kocik
74e730149b Commented code for different icon for UpdatedItemsInfo Notification. 2021-11-15 13:54:02 +01:00
David Kocik
996b390f1f Merge branch 'dk_updater' 2021-11-15 13:00:22 +01:00
David Kocik
617adb1300 Our opening of url in wxHyperlink 2021-11-15 13:00:03 +01:00
David Kocik
ce767f9f34 Notice dialog about no default materials in printer profile. 2021-11-15 12:59:51 +01:00
tamasmeszaros
e1a5575ca3 Mark the source of nanosvg library 2021-11-15 11:11:48 +01:00
YuSanka
8b3f7f77ca Fix for #7301 - Endless loop telling me 'Supports work better if the following feature is enabled: bridging perimeters' when setting 'generate support material' on a single object
This bug was from 0c29eb9943
2021-11-15 10:48:53 +01:00
enricoturri1966
4b95b57707 Added missing include 2021-11-15 09:02:21 +01:00
YuSanka
a739cf3543 Localization + new POT
+ added hyperlinks for Ironing parameters
2021-11-15 08:32:40 +01:00
David Kocik
516ec79259 Fixed parsing of older PrusaSlicer.ini files. 2021-11-14 20:53:35 +01:00
Lukáš Hejl
49588b2b7f Decreased the minimum diameter of the brush in the multi-material painting gizmo to 0.1 with respect to #7108. 2021-11-12 17:52:12 +01:00
Lukas Matena
493726b34f Empty layer warning is now generated once per object 2021-11-12 17:08:14 +01:00
Vojtech Bubnik
f84b89af93 Fix of Changing purge volumes doesn't set project as unsaved #7265 2021-11-12 17:05:19 +01:00
enricoturri1966
183cfe8e78 #7293 - Do not put __FILE__ info in release mode 2021-11-12 15:08:04 +01:00
David Kocik
8cedb75d55 Start print after upload button (instead of checkbox) 2021-11-12 14:50:47 +01:00
YuSanka
d664f718de Linux specific: Using a pop-up menu on the "cog" wheel for changing of an extruder color.(related to #6759)
+ some code refactoring
+ change a little bit gray color in colorchange_del icons to avoid collision in Dark mode
2021-11-12 14:02:18 +01:00
Lukáš Hejl
e182a4cd92 Added a missing include (GCC 11.1). 2021-11-12 13:29:17 +01:00
YuSanka
5d342f69b2 OG_CustomCtrl: Code refactoring - Use standard RichMessageDialog instead of own written 2021-11-12 12:13:29 +01:00
YuSanka
24134d92a2 Localization fixes + new POT 2021-11-12 09:21:41 +01:00
enricoturri1966
17d853d144 Commented out unused line 2021-11-12 08:45:16 +01:00
enricoturri1966
4d0a74bae0 Added missing include 2021-11-12 08:07:07 +01:00
enricoturri1966
b35bbc7add Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Fixed imgui slider label 2021-11-12 07:56:47 +01:00
Lukas Matena
bcef57485a Make sure the object does not float after simplification 2021-11-12 07:37:17 +01:00
Lukas Matena
91a1ef06ec Merge branch 'lm_simplify_fixes' 2021-11-12 06:51:24 +01:00
Filip Sykala
d489ec43f8 Remove static flag and extend case when call after will be from unactive Gizmo. 2021-11-12 06:49:09 +01:00
Filip Sykala
4686a7e051 translation of progress 2021-11-12 06:49:09 +01:00
Lukas Matena
4af1f4a4bf Some more fixes when switching objects while simplifying 2021-11-12 06:49:09 +01:00
Lukas Matena
660672a6ee Several more fixes:
- fixed crash on close when worker is running
- refresh percentage in the UI by requesting extra frames
- get rid of extra m_is_worker_running variable
2021-11-12 06:49:09 +01:00
Lukas Matena
343d981a81 Some more cleanup 2021-11-12 06:49:09 +01:00
Lukas Matena
aef14c5ce2 Many small fixes 2021-11-12 06:49:09 +01:00
Lukas Matena
36bba50742 Simplify does not touch ModelVolume all the time (runs, but needs polishing) 2021-11-12 06:49:09 +01:00
Lukas Matena
c04d545e24 More adjustments, still working with Model directly 2021-11-12 06:49:09 +01:00
Lukas Matena
8e18b5df49 Shared data packed in a struct 2021-11-12 06:49:09 +01:00
Lukas Matena
3a3979dc39 Simplify gizmo now renders the volume by itself,
it does not rely on the usual GLVolume rendering. GLCanvas3D::toggle_model_object_visibility
was extended to hide a single volume. Rendering the model and wireframe uses the same
vertex buffer, which is now used through GLModel class. GLGizmoRenderTransparent class
should no longer be needed. GLCanvas3D::reload_scene calls replaced with request_rerender.
2021-11-12 06:49:09 +01:00
Lukas Matena
529643dc5b Minor improvements:
- const corectness
- volatile -> std::atomic
- GUI::format
- encoding issues
2021-11-12 06:49:09 +01:00
David Kocik
1c702112d6 Merge branch 'dk_sla' 2021-11-11 17:09:13 +01:00
David Kocik
e201d318f8 SLA only mode in wizard
Activates only if PrusaSlicer.ini does NOT contains any FFF printers.
Added only_default_printers() function to activate wizard if none printers are installed.
2021-11-11 17:08:54 +01:00
tamasmeszaros
d4242c3a32 Fix hanging status indication if a UI job gets started over another.. 2021-11-11 17:07:35 +01:00
Filip Sykala
1446f5174d Merge branch 'master' into fs_removes_SimplifyMesh 2021-11-11 16:05:43 +01:00
enricoturri1966
9bac4c5c20 Close Shape Gallery dialog by pressing ESC on keyboard 2021-11-11 13:03:40 +01:00
YuSanka
27d5a8dc5a Fixed typo in a0e6c7a076 2021-11-11 12:50:25 +01:00
Vojtech Bubnik
a2e764d7ac Revert "medical"
This reverts commit 117302ba22.
2021-11-11 11:22:57 +01:00
tamasmeszaros
515c34be6f Slight performance boost
follow up to f7db7c0
2021-11-11 11:12:03 +01:00
YuSanka
bbc4f46d63 Follow up a3f6ce1ac6 2021-11-11 10:31:12 +01:00