From: eap Date: Tue, 18 Dec 2012 10:56:35 +0000 (+0000) Subject: Fix a bug that "Lying on Geom" filter rejects elements whose gravity X-Git-Tag: pluginMGCleaner~225 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ee5ad7e0300846e5928a1d25109b908cc7b3ce2;p=modules%2Fsmesh.git Fix a bug that "Lying on Geom" filter rejects elements whose gravity center is outside the shape --- diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index 0c33a0078..6f1f88f82 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -3761,7 +3761,9 @@ bool ElementsOnShape::IsSatisfy (long elemId) } // Check the center point for volumes MantisBug 0020168 - if (isSatisfy && myClassifiers[i]->ShapeType() == TopAbs_SOLID) + if (isSatisfy && + myAllNodesFlag && + myClassifiers[i]->ShapeType() == TopAbs_SOLID) { centerXYZ /= elem->NbNodes(); isSatisfy = ! myClassifiers[i]->IsOut( centerXYZ );