1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0032153: Visualization, Graphic3d_ArrayOfPrimitives - share common allocator

Added method Graphic3d_Buffer::DefaultAllocator(), which is now used across code.
This commit is contained in:
kgv
2021-02-21 20:55:35 +03:00
committed by bugmaster
parent 4bf072e4eb
commit 02a2beaad9
11 changed files with 32 additions and 30 deletions

View File

@@ -15,7 +15,6 @@
#include <Select3D_SensitivePrimitiveArray.hxx>
#include <NCollection_AlignedAllocator.hxx>
#include <OSD_Parallel.hxx>
#include <Standard_Atomic.hxx>
@@ -165,7 +164,7 @@ Select3D_SensitivePrimitiveArray::Select3D_SensitivePrimitiveArray (const Handle
myPatchSizeMax (1),
myPatchDistance (ShortRealLast()),
myIs3d (false),
myBvhIndices (new NCollection_AlignedAllocator(16)),
myBvhIndices (Graphic3d_Buffer::DefaultAllocator()),
myMinDepthElem (RealLast()),
myMinDepthNode (RealLast()),
myMinDepthEdge (RealLast()),