Vojtech Bubnik
f589dd7851
Added asserts to check for empty calls to glMultiDrawElements().
...
Some OpenGL drivers crash on empty glMultiDrawElements, see GH #7415 .
2021-12-12 07:35:13 +01:00
enricoturri1966
b45d56b5b8
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_preview_layout
2021-12-08 08:15:51 +01:00
enricoturri1966
00c86b2b7f
Follow-up of 2ed57d1ba5
- Removed unneeded sort
2021-12-06 14:25:17 +01:00
Vojtech Bubnik
2ed57d1ba5
Further optimization of G-code viewer: Replaced std::set<RenderPaths>
...
with std::vector.
2021-12-06 13:21:34 +01:00
Vojtech Bubnik
c37090a64d
Optimization of G-code rendering, may improve speed issues mentioned in #7415
2021-12-06 11:52:27 +01:00
enricoturri1966
c7a4f61238
#7415 - GCodeViewer::refresh_render_paths() - Remove empty render paths to avoid calling glMultiDrawElements() with empty data while rendering toolpaths.
2021-12-06 11:39:10 +01:00
Vojtech Bubnik
bfce4f6901
Follow-up to 3622f06bed
...
Work around 3D scene focus after de-activation of the main
window without having to resort to CallAfter(), which breaks
on Linux with some window managers that follow mouser cursor.
Fixes #5620 #6870 #6992
3622f06bed
was not a correct solution,
it broke focus for non-modal windows.
Fixes #7419
The actual issue seems to be caused by wxProgressDialog not playing
well with modal dialogs closed just before wxProgressDialog opens.
If wxProgressDialog parent was not a main frame, keyboard focus
was not restored correctly after the wxProgressDialog closed.
2021-12-05 09:09:34 +01:00
enricoturri1966
ba20cc4892
#7396 - Fix of crash while slicing a particular stl file (missing checks into GCodeViewer::load_toolpaths())
2021-12-02 09:09:19 +01:00
enricoturri1966
fcc13d1665
#7388 - Fixed shell does not align in Z direction if raft enabled in gcode preview
2021-12-01 09:16:53 +01:00
enricoturri1966
18cb91a982
Fixed conflicts after merge with master
2021-11-30 12:13:51 +01:00
enricoturri1966
152c3be53a
Tech ENABLE_FIX_SEAMS_SYNCH set as default
2021-11-30 11:42:39 +01:00
enricoturri1966
a3874a410f
Tech ENABLE_FIX_PREVIEW_OPTIONS_Z set as default
2021-11-30 10:55:00 +01:00
enricoturri1966
f72d83993e
Tech ENABLE_SEAMS_USING_BATCHED_MODELS set as default
2021-11-30 10:32:28 +01:00
enricoturri1966
75856d5e65
Tech ENABLE_SEAMS_USING_MODELS set as default
2021-11-30 08:36:55 +01:00
enricoturri1966
5218570348
Follow-up of 8bc442cd32
- Commented out unused code and fixed build when tech ENABLE_LEGEND_TOOLBAR_ICONS is disabled
2021-11-29 12:46:27 +01:00
enricoturri1966
353a9e61f5
Fixed conflicts after merge with master
2021-11-29 11:53:45 +01:00
enricoturri1966
5f92ddb56c
Fix for horizontal slider limits the top non-gray layers to two, not one, SPE-1130
2021-11-23 11:42:22 +01:00
enricoturri1966
c242f31353
Fixed conflicts after merge with master
2021-11-23 08:48:11 +01:00
Vojtech Bubnik
135b3fcea8
Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer
2021-11-16 15:48:17 +01:00
Vojtech Bubnik
0420f63540
Higher resolution G-code and volumetric rate legend, disabled.
2021-11-16 15:48:06 +01:00
enricoturri1966
9af9b9b35d
Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS set as default
2021-11-16 12:39:54 +01:00
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
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
enricoturri1966
a326c5b320
Tech ENABLE_LEGEND_TOOLBAR_ICONS - Toolbar items in legend using svn icons
2021-11-12 14:04:37 +01:00
enricoturri1966
dd484e42fc
Fixed conflicts after merge with master
2021-11-12 08:08:54 +01:00
enricoturri1966
f7662682c8
Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Modified ImGuiWrapper::slider_float() to create a compound widget where an additional button can be used to set the keyboard focus into the slider to allow the user to type in the desired value
2021-11-05 14:46:44 +01:00
enricoturri1966
3b17cde53f
Tech ENABLE_PREVIEW_LAYOUT - Collassable legend
2021-10-19 13:36:20 +02:00
enricoturri1966
3d22cc096f
Fixed conflicts after merge with master
2021-10-19 12:08:43 +02:00
enricoturri1966
eee8d97f49
Tech ENABLE_TRAVEL_TIME - Show estimated time for travel moves in legend when they are visible
2021-10-07 14:07:33 +02:00
enricoturri1966
86636a906c
Small refactoring
2021-10-06 15:55:14 +02:00
enricoturri1966
077abe117a
Port of 2afdc66dfb
and dbad87fb42
into tech ENABLE_PREVIEW_LAYOUT
2021-10-06 15:49:25 +02:00
enricoturri1966
4ff13a5d63
Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS - Reworked detection of collision with printbed. The detection uses now different algorithms in dependence of the printbed type (rectangular, circular, convex) to improve performance.
2021-10-06 13:47:54 +02:00
enricoturri1966
e02a25cf1e
Follow-up of 57a0b23a07
- Tech ENABLE_PREVIEW_LAYOUT - Fixed logic to avoid resetting the preview's horizontal slider when toggling options
2021-10-05 15:28:43 +02:00
enricoturri1966
100aaed2b7
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_preview_layout
2021-10-05 14:49:35 +02:00
enricoturri1966
37219fe4f3
Fixed crash when turning on shells visibility in preview and the application was started with background processing active
2021-10-05 14:49:18 +02:00
enricoturri1966
cd05e8f6cb
Tech ENABLE_PREVIEW_LAYOUT - Other fixes related to legend size when moving the application to another monitor
2021-10-05 14:13:35 +02:00
enricoturri1966
b4423aa954
Fixes required after merge with branch et_layer_time_preview
2021-09-30 08:35:36 +02:00
enricoturri1966
5cf48d1ecf
Merge remote-tracking branch 'origin/et_layer_time_preview' into et_preview_layout
2021-09-30 08:16:10 +02:00
enricoturri1966
33da203b18
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_preview_layout
2021-09-30 07:58:11 +02:00
enricoturri1966
064bc63b23
Fixed conflicts after merge with master
2021-09-30 07:57:37 +02:00
enricoturri1966
1df91ea930
Follow-up of 67e519d3ab
- Use a platform-indipendent fix
2021-09-29 13:34:30 +02:00
enricoturri1966
e088a9fc36
Tech ENABLE_PREVIEW_LAYOUT - View type combo popup has now adaptive height
2021-09-29 13:30:18 +02:00
enricoturri1966
c963c3c801
Follow-up of 1a95169466
- Fixed legend resizer
2021-09-29 12:35:53 +02:00
enricoturri1966
1a95169466
Tech ENABLE_PREVIEW_LAYOUT - Fixed legend width when moving the application to another monitor
2021-09-29 11:56:55 +02:00
enricoturri1966
d458de601b
Tech ENABLE_PREVIEW_LAYOUT - Fixed legend layout for tool view
2021-09-24 12:33:26 +02:00
enricoturri1966
57a0b23a07
Tech ENABLE_PREVIEW_LAYOUT - Avoid resetting the preview's horizontal slider when toggling options
2021-09-24 11:57:29 +02:00
enricoturri1966
e12cf58c91
Tech ENABLE_PREVIEW_LAYOUT - Replace options combo in bottom toolbar with toolbar in legend
2021-09-24 09:22:50 +02:00
enricoturri1966
fee31084bd
Fixed conflicts after merge with master
2021-09-23 12:06:18 +02:00
enricoturri1966
d7216b5d68
Follow-up of f71cf324b9
- Fixed shown tool position
2021-09-23 11:51:30 +02:00