Salome HOME
BUG: EDF 2655: Hexa splitting into tetra low performance
authorrnc <rnc@opencascade.com>
Mon, 22 Jul 2013 08:46:57 +0000 (08:46 +0000)
committerrnc <rnc@opencascade.com>
Mon, 22 Jul 2013 08:46:57 +0000 (08:46 +0000)
commit094287b4dfbd30d6b17cb9d6cb892e62388c2170
treefbb355d542ca33ba0d64a6137ba662938922d382
parent3f3beb8b958607b3ac214b8234b5ae5d99facc13
BUG: EDF 2655: Hexa splitting into tetra low performance

A better fix has been found by improving the getNextFree() method in ObjectPool.hxx. When there is no "hole" in the ID list we don't iterate on the _freeList to find the next free ID. We jump straight to the last occupied ID.
This fix is simpler and can benefit to other methods of SMESH_Editor like QuadTo4Tri for example.
src/SMDS/ObjectPool.hxx
src/SMESH/SMESH_MeshEditor.cxx