Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
712a8ce
)
Performance regression on SALOME_TESTS/Grids/smesh/bugs_16/S9
author
eap
<eap@opencascade.com>
Tue, 1 Apr 2014 16:48:00 +0000
(20:48 +0400)
committer
eap
<eap@opencascade.com>
Tue, 1 Apr 2014 16:48:00 +0000
(20:48 +0400)
src/SMESHUtils/SMESH_MeshAlgos.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHUtils/SMESH_MeshAlgos.cxx
b/src/SMESHUtils/SMESH_MeshAlgos.cxx
index 23a285f616ad0f9c9e5c6ce0ccba545f47b776a0..957828474e306b0d3bb07286179f454aaf297c1c 100644
(file)
--- a/
src/SMESHUtils/SMESH_MeshAlgos.cxx
+++ b/
src/SMESHUtils/SMESH_MeshAlgos.cxx
@@
-759,10
+759,10
@@
SMESH_ElementSearcherImpl::FindClosestTo( const gp_Pnt& point,
{
gp_Pnt boxCenter = 0.5 * ( _ebbTree->getBox()->CornerMin() +
_ebbTree->getBox()->CornerMax() );
{
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();
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() )
{
radius = _ebbTree->maxSize() / pow( 2., _ebbTree->getHeight()) / 2;
while ( suspectElems.empty() )
{