Magne Sjaastad
f7ccfcfff6
#14182 Fix stack overflow when destroying deep AABB bounding box trees
...
The bounding box tree is destroyed by deleteInternalNodesBottomUp, which
recursed once per tree level. For deep or unbalanced trees this overflowed
the call stack during project close (RigMainGrid destruction).
Replace the recursion with an explicit stack. Deleting an internal node does
not touch its children, so the child pointers are read before the node is
deleted and the deletion order is irrelevant. Leaf nodes remain pooled and
are not deleted individually.
2026-06-10 08:57:39 +02:00
Magne Sjaastad
12ca418ef0
Add fixes to handle missing data correctly
2024-01-19 11:53:06 +01:00
Magne Sjaastad
38bfa9ef1f
#9588 Accumulate N cells for AABB tree
2022-12-19 15:24:53 +01:00
Magne Sjaastad
befab37588
Add debug output of AABB tree
2022-12-16 15:36:48 +01:00
Magne Sjaastad
32614152a6
Memory Management : Fix memory leak in bounding box tree
2022-03-03 14:39:41 +01:00
Gaute Lindkvist
d6be12bf02
Improved Bounding Box tree for ill-formed grids
2020-05-25 15:30:45 +02:00
Kristian Bendiksen
30cec3e280
Fix comparison between signed and unsigned integer expressions.
2020-05-20 14:23:22 +02:00
Gaute Lindkvist
6d5216f794
AABB Tree: Cache bounding box center in leaf nodes and calculate bounding box while assigning leaves.
2020-05-19 16:14:08 +02:00
Gaute Lindkvist
96fe8b07e2
Stop using node pool for AABB tree because it interferes with parallelism.
...
(still using the leaf pool)
2020-05-19 16:14:08 +02:00
Gaute Lindkvist
a486f4ac76
Minor tree improvements
2020-05-19 16:14:08 +02:00
Gaute Lindkvist
8bfcaa0341
Bounding box clearing
2020-05-15 14:47:04 +02:00
Gaute Lindkvist
99aa65c611
Other improvements to bounding box calculation
2020-05-15 14:47:04 +02:00
Gaute Lindkvist
64b0687dee
Parallel AABB tree
2020-05-15 14:47:04 +02:00
Gaute Lindkvist
0922b68302
Simplified AABB tree
2020-05-15 14:47:04 +02:00
Magne Sjaastad
6f54d176cc
AABB Tree : Do resize based on number of leaf nodes
2020-01-27 14:17:43 +01:00
Gaute Lindkvist
b958db0b1f
AABB Tree : Implement simple pool allocation for bounding box tree
2020-01-27 14:17:37 +01:00
sigurdp
cc72c7b2f6
Merged down changes from Resinsight dev branch
2013-12-04 16:06:48 +01:00
Jacob Støren
c7a4b48224
Linux compile fix
2013-12-04 14:37:54 +01:00
Jacob Støren
c608376c4e
Added ArrayWrapper and BoundingBoxTree to VizFwk
2013-12-04 11:24:53 +01:00