Commit Graph

17714 Commits

Author SHA1 Message Date
Vojtech Bubnik
58c93196d5 Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2021-11-16 10:18:58 +01:00
Vojtech Bubnik
cc44089440 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
f535b592ac 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
107f1baa32
Updated SLA material colors. 2021-11-16 08:02:28 +01:00
YuSanka
02c18dbc52 Sidebar: Info box: Fixed value of the "Volume"
+ Hidden "Materials" item
2021-11-15 17:36:01 +01:00
enricoturri1966
e419285147 #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
059e4f8cf1 Commented code for different icon for UpdatedItemsInfo Notification. 2021-11-15 13:54:02 +01:00
David Kocik
3c4095cec2 Merge branch 'dk_updater' 2021-11-15 13:00:22 +01:00
David Kocik
ad2760f82b Our opening of url in wxHyperlink 2021-11-15 13:00:03 +01:00
David Kocik
6ebd58e7a0 Notice dialog about no default materials in printer profile. 2021-11-15 12:59:51 +01:00
tamasmeszaros
b431fd1f7e Mark the source of nanosvg library 2021-11-15 11:11:48 +01:00
YuSanka
871311c95c 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
5dfba04e02 Added missing include 2021-11-15 09:02:21 +01:00
YuSanka
a6863961f7 Localization + new POT
+ added hyperlinks for Ironing parameters
2021-11-15 08:32:40 +01:00
David Kocik
0548df9a76 Fixed parsing of older PrusaSlicer.ini files. 2021-11-14 20:53:35 +01:00
Lukáš Hejl
c6940970f2 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
17b9189974 Empty layer warning is now generated once per object 2021-11-12 17:08:14 +01:00
Vojtech Bubnik
f31a2db495 Fix of Changing purge volumes doesn't set project as unsaved #7265 2021-11-12 17:05:19 +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 117302ba22.
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