]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix a bug that "Lying on Geom" filter rejects elements whose gravity
authoreap <eap@opencascade.com>
Tue, 18 Dec 2012 10:56:35 +0000 (10:56 +0000)
committereap <eap@opencascade.com>
Tue, 18 Dec 2012 10:56:35 +0000 (10:56 +0000)
center is outside the shape

src/Controls/SMESH_Controls.cxx

index 0c33a0078df8b743219a24fed7a87b90d0621df9..6f1f88f825472dc21787cdac038080286152f2d3 100644 (file)
@@ -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 );