Commit graph

498 commits

Author SHA1 Message Date
enricoturri1966
cd4094743e Tech ENABLE_COLOR_CLASSES - 1st installment -> Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation 2021-12-22 10:45:35 +01:00
YuSanka
f2e2b03fa4 Follow-up to 942c6ea7d8 - an assert is commented.
Note: value can be equal to zero, when move.type==Travel
2021-12-20 16:19:17 +01:00
Vojtech Bubnik
942c6ea7d8 Follow-up to 2e250c1463
2f63805857
The issue was caused by 2e250c1463
that did not do the binning of floating values well for small numbers,
small numbers were rounded to zero.
The new code now rounds to two significant digits similarly to
sprintf(buf, "%.2g", value)
2021-12-20 14:47:51 +01:00
enricoturri1966
2f63805857 - Fixed toolpaths height calculation for ironing extrusion role 2021-12-20 11:17:44 +01:00
enricoturri1966
c30f5823f5 Refactoring of GLShaderProgram::set_uniform() methods 2021-12-15 14:55:21 +01:00
enricoturri1966
cc2b8da6a4 - Use three floats for defining vertex normal to render travel toolpaths. This fixes a crash on NVIDIA Quadro graphics cards when turning on travel moves visibility in preview. 2021-12-14 13:53:37 +01:00
enricoturri1966
0d68a534ab Always use batched models to render options in preview 2021-12-13 09:50:13 +01:00
Vojtech Bubnik
f589dd7851 Added asserts to check for empty calls to glMultiDrawElements().
Some OpenGL drivers crash on empty glMultiDrawElements, see GH .
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 2021-12-06 11:52:27 +01:00
enricoturri1966
c7a4f61238 - 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   

3622f06bed was not a correct solution,
it broke focus for non-modal windows.
Fixes 

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 - 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 - 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 - 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