mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
Performance regression on SALOME_TESTS/Grids/smesh/bugs_16/S9
This commit is contained in:
parent
712a8ce960
commit
32db05b07f
@ -759,10 +759,10 @@ SMESH_ElementSearcherImpl::FindClosestTo( const gp_Pnt& point,
|
||||
{
|
||||
gp_Pnt boxCenter = 0.5 * ( _ebbTree->getBox()->CornerMin() +
|
||||
_ebbTree->getBox()->CornerMax() );
|
||||
double radius;
|
||||
double radius = -1;
|
||||
if ( _ebbTree->getBox()->IsOut( point.XYZ() ))
|
||||
radius = point.Distance( boxCenter ) - 0.5 * _ebbTree->maxSize();
|
||||
else
|
||||
if ( radius < 0 )
|
||||
radius = _ebbTree->maxSize() / pow( 2., _ebbTree->getHeight()) / 2;
|
||||
while ( suspectElems.empty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user