From 5ee5ad7e0300846e5928a1d25109b908cc7b3ce2 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 18 Dec 2012 10:56:35 +0000 Subject: [PATCH] Fix a bug that "Lying on Geom" filter rejects elements whose gravity center is outside the shape --- src/Controls/SMESH_Controls.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.2