Commit Graph

307 Commits

Author SHA1 Message Date
Matthias Hochsteger
5498b1ad9c Remove NgProfiler::RegionTimer 2026-05-20 14:47:20 +02:00
Lackner, Christopher
074bc99a7c refactor segments <-> edgedescriptor 2026-05-04 18:47:29 +02:00
Matthias Hochsteger
099315be9b Only evaluate solution on segments if necessary 2026-04-13 11:22:22 +02:00
Matthias Hochsteger
5d6b9aafd6 Clip pointcurves 2026-04-10 18:42:18 +02:00
Matthias Hochsteger
47bc5b3205 Apply selected regions from vector function if no scalar function is selected 2026-04-10 16:11:10 +02:00
Joachim Schoeberl
f10433ff6b fix warnings 2026-04-09 20:20:01 +02:00
Matthias Hochsteger
f5ca620675 Fix losing camera settings when switching to Geometry view 2026-04-08 15:12:40 +02:00
Matthias Hochsteger
01797a7f89 Fix visualization issues (colors, transparency) 2026-04-08 12:25:23 +02:00
Matthias Hochsteger
6ca5657c73 Fix race condition in mesh drawing with netgen pip package
When Draw() is running from python it
- sets the global mesh pointer (a weak pointer)
- tells the GUI thread to draw the mesh

The problem:
If the python script already finished, the mesh is dying before the GUI
thread picks it up for drawing. This does not happen for drawing a
function, since the NGSolve solution scene object already keeps a
shared_ptr to CF/GridFunction/mesh objects.

The fix:
Add a shared_ptr<Mesh> to the mesh scene object. This gets updated
automatically when the global weak_ptr is set (but only if the GUI was
loaded, that's why a callback is needed)
2026-01-26 13:57:15 +01:00
Matthias Hochsteger
fe8b294340 Utility function GetGlobalMesh 2026-01-23 11:08:15 +01:00
Matthias Hochsteger
f22d23572d Initialize shared_ptr members in VisualSceneSolution 2026-01-23 11:01:41 +01:00
Matthias Hochsteger
250da947ec Check if surface element should be drawn in isolines 2025-10-16 12:57:10 +02:00
Matthias Hochsteger
25c6161b95 Fix double-click element selection in SolutionScene 2025-09-10 11:34:25 +02:00
Matthias Hochsteger
0ee9b8fe19 Fix double click in GUI if clipping is enabled 2025-07-30 08:58:18 +02:00
Hochsteger, Matthias
8504e5f1cf Factor out surface element rendering and visual select function 2025-07-28 07:26:12 +02:00
Matthias Hochsteger
60c1151205 Utility function to draw lines (used for contact boundary in NGSolve) 2025-04-09 11:39:57 +02:00
Lackner, Christopher
8944322e60 Merge branch 'cleanup_searchtree_elementindex' into 'master'
move all searchtrees to use elementindex

See merge request ngsolve/netgen!702
2025-03-13 19:55:29 +01:00
Christopher Lackner
15bd6cbed0 take autoscale value on drawn regions only 2025-03-13 18:49:28 +01:00
Christopher Lackner
7aae5369c4 move all searchtrees to use elementindex 2025-03-13 18:39:21 +01:00
Christopher Lackner
9204b079f6 Improvements to FindPointInElement interface code 2025-03-07 17:14:31 +01:00
Matthias Hochsteger
b811162086 Don't apply lighting to identification lines 2025-02-10 17:16:49 +01:00
Matthias Hochsteger
b14a9e6d2b Also shrink identifications in visualization 2025-02-10 17:15:36 +01:00
Christopher Lackner
58db55c2ff fix gui crash in 2d when selecting face numbers 2025-01-03 10:14:58 +01:00
Joachim Schoeberl
bcbd390f7d PointIndex in Identifications 2024-12-31 21:26:04 +01:00
Joachim Schoeberl
4a9188da61 more use of ElementIndex, T_Range<T>(size_t) is now explicit 2024-12-29 21:36:37 +01:00
Joachim Schoeberl
a5ce9915d1 compare PointIndex only with PointIndex 2024-12-28 22:58:44 +01:00
Joachim Schoeberl
75032f9905 operators +/- for PointIndex 2024-12-28 21:26:05 +01:00
Matthias Hochsteger
ecc3db6760 Fix point selection on clipping plane 2024-12-12 16:42:57 +01:00
Joachim Schoeberl
c3e27a1792 fix warning 2024-12-04 08:11:43 +01:00
Matthias Hochsteger
3bfa6c19fa Fix build warnings (found with gcc -Wall) 2024-12-03 18:58:12 +01:00
Christopher Lackner
b981d45069 enable periodic + closesurface identification on same boundaries 2024-10-16 19:42:57 +02:00
Joachim Schoeberl
54d59cff1e fix warnings 2024-07-16 13:03:49 +02:00
Matthias Hochsteger
05c01ee884 Fix segfault when using more than 32 colors in colormap 2024-05-16 10:49:11 +02:00
Hochsteger, Matthias
335b926f8b Runtime MPI wrapper 2024-05-13 13:43:53 +02:00
Joachim Schoeberl
c87aea14eb rename INT to IVec (avoiding windows name conflict) 2024-02-12 07:36:26 +01:00
Schöberl, Joachim
b88535621f Removewinheader 2024-02-11 11:02:18 +01:00
Joachim Schoeberl
97de13cf30 remove include<windows.h> from cpp-files 2024-02-10 20:55:45 +01:00
Joachim Schoeberl
e8a9131b31 include win first 2024-02-10 10:09:29 +01:00
Joachim Schoeberl
6622829e8f windows include in visual 2024-02-10 10:05:00 +01:00
Matthias Hochsteger
0c885db5a4 Consider draw_surfaces bitarray when drawing surface vectors 2024-01-25 16:00:45 +01:00
Lackner, Christopher
239b2b5478 Merge branch 'show_adjacent_domain_names_on_dblclick' into 'master'
Show adjacent domain names when double clicking a mesh face in Netgen GUI

See merge request ngsolve/netgen!618
2023-12-14 15:19:28 +01:00
Matthias Hochsteger
c8f38486f1 Draw grey surfaces again if draw_surface=False 2023-12-07 11:01:55 +01:00
Matthias Hochsteger
82fb39cef9 Show adjacent domain names when double clicking a mesh face in Netgen GUI 2023-12-05 20:14:18 +01:00
Matthias Hochsteger
fd3a5bbd34 Fix color of point curves if use_textures is on 2023-10-30 09:41:39 +01:00
Matthias Hochsteger
6e6c23b05e Fix printed face name on double click for 2d meshes 2023-10-24 15:03:54 +02:00
Matthias Hochsteger
5931376a57 Clip prisms/hexes/pyramids as a whole (like tets) 2023-10-19 21:47:00 +02:00
Joachim Schoeberl
bbb91b704d plotting hex7 2023-09-29 09:30:19 +02:00
Joachim Schoeberl
7d409e6ec4 visualization of clipping plane for HEX7 2023-09-27 12:20:49 +02:00
Matthias Hochsteger
04ad6239d2 Rebuild color texture when mesh changes 2023-09-26 15:30:57 +02:00
Joachim Schoeberl
e0fa631ca9 hex7 elements 2023-09-21 00:14:37 +02:00