17397 Commits

Author SHA1 Message Date
Vojtech Bubnik
49906da1c5 available, 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-12 16:04:23 +01:00
enricoturri1966
d43ddce078 #7293 - Do not put __FILE__ info in release mode 2021-11-12 15:08:04 +01:00
David Kocik
87c2e90a5d Start print after upload button (instead of checkbox) 2021-11-12 14:50:47 +01:00
YuSanka
8ef03718d0 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
9c35e0cb75 Added a missing include (GCC 11.1). 2021-11-12 13:29:17 +01:00
YuSanka
e70fc7f0da OG_CustomCtrl: Code refactoring - Use standard RichMessageDialog instead of own written 2021-11-12 12:13:29 +01:00
YuSanka
8bfa132a1b Localization fixes + new POT 2021-11-12 09:21:41 +01:00
enricoturri1966
9dcebf0a04 Commented out unused line 2021-11-12 08:45:16 +01:00
enricoturri1966
f86cd8409d Added missing include 2021-11-12 08:07:07 +01:00
enricoturri1966
b3992ab35d Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Fixed imgui slider label 2021-11-12 07:56:47 +01:00
Lukas Matena
c677b2771c Make sure the object does not float after simplification 2021-11-12 07:37:17 +01:00
Lukas Matena
366a3bca07 Merge branch 'lm_simplify_fixes' 2021-11-12 06:51:24 +01:00
Filip Sykala
934ed0bbae Remove static flag and extend case when call after will be from unactive Gizmo. 2021-11-12 06:49:09 +01:00
Filip Sykala
d72fba2a6a translation of progress 2021-11-12 06:49:09 +01:00
Lukas Matena
a61c892c05 Some more fixes when switching objects while simplifying 2021-11-12 06:49:09 +01:00
Lukas Matena
0bfa81be56 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
9ad54ab4db Some more cleanup 2021-11-12 06:49:09 +01:00
Lukas Matena
be04751776 Many small fixes 2021-11-12 06:49:09 +01:00
Lukas Matena
7bcab6f795 Simplify does not touch ModelVolume all the time (runs, but needs polishing) 2021-11-12 06:49:09 +01:00
Lukas Matena
ab260d005e More adjustments, still working with Model directly 2021-11-12 06:49:09 +01:00
Lukas Matena
6661967f9f Shared data packed in a struct 2021-11-12 06:49:09 +01:00
Lukas Matena
ba56a79795 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
50ea144b84 Minor improvements:
- const corectness
- volatile -> std::atomic
- GUI::format
- encoding issues
2021-11-12 06:49:09 +01:00
David Kocik
8369bd86f3 Merge branch 'dk_sla' 2021-11-11 17:09:13 +01:00
David Kocik
217bcfd37d 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
e324643a04 Fix hanging status indication if a UI job gets started over another.. 2021-11-11 17:07:35 +01:00
Filip Sykala
3c61d2b352 Merge branch 'master' into fs_removes_SimplifyMesh 2021-11-11 16:05:43 +01:00
enricoturri1966
93347f0452 Close Shape Gallery dialog by pressing ESC on keyboard 2021-11-11 13:03:40 +01:00
YuSanka
d599c85477 Fixed typo in a0e6c7a076 2021-11-11 12:50:25 +01:00
Vojtech Bubnik
3a93277531 Revert "medical"
This reverts commit 117302ba22aa540cc020e1e5eb77422801627c29.
2021-11-11 11:22:57 +01:00
tamasmeszaros
17686b4814 Slight performance boost
follow up to f7db7c0
2021-11-11 11:12:03 +01:00
YuSanka
a0e6c7a076 Follow up a3f6ce1ac6 2021-11-11 10:31:12 +01:00
Vojtech Bubnik
117302ba22 medical 2021-11-11 10:11:13 +01:00
tamasmeszaros
549c98ac88 Fix its_number_of_patches returning bool instead of size_t 2021-11-11 10:02:58 +01:00
YuSanka
64e926b363 Fixed endless "New project" possibility 2021-11-11 08:46:39 +01:00
Lukáš Hejl
f94a1dbb48 Added a missing include (GCC 11.1). 2021-11-10 23:21:36 +01:00
tamasmeszaros
f44f367f9b Merge branch 'tm_rotgizmo_beautify' 2021-11-10 16:40:19 +01:00
tamasmeszaros
c49ba9f7f0 Round up rotation optimizer gizmo. 2021-11-10 16:35:47 +01:00
David Kocik
8b51dc6dee Menu text 2021-11-10 16:34:54 +01:00
David Kocik
fe309dc248 Merge branch 'dk_upload' 2021-11-10 15:57:15 +01:00
David Kocik
7acc3690ab Change in checking model name in physical printer dialog 2021-11-10 15:56:50 +01:00
enricoturri1966
954538fdf0 Imgui now recognizes numpad enter key presses 2021-11-10 15:42:25 +01:00
David Kocik
cbc0c6ccd0 Merge branch 'dk_updater' 2021-11-10 15:28:03 +01:00
David Kocik
43986c2896 Changes in notifying about new releases.
- Unified preferences settings. version_check option is replaced with notify_release that has 3 states.
- fixed logic when show notification based on version string.
- notification shows released version
- dialog notifying new version is never showing if external updater is running.
Escape quotes inside path to external updater
2021-11-10 15:27:46 +01:00
Lukas Matena
6895e0fde1 External updater is only run in GUI mode 2021-11-10 15:27:46 +01:00
Lukas Matena
262304c777 Use correct encoding when calling external updater 2021-11-10 15:27:46 +01:00
David Kocik
9994e0bcbc Start updater during start of prusaslicer. 2021-11-10 15:27:46 +01:00
rtyr
7122572841
Fixed black SLA material color. 2021-11-10 12:56:54 +01:00
enricoturri1966
f7db7c0a26 #7282 - Fixed crash after splitting object into parts (missing or degenerate convex hulls) 2021-11-10 12:07:43 +01:00
Lukas Matena
8915d8bc91 Improvement of previous commit:
- use boost::nowide instead of WinAPI for the encoding conversion
- only add the node when it is not empty
2021-11-10 11:39:34 +01:00