Fix a bug that "Lying on Geom" filter rejects elements whose gravity

center is outside the shape
This commit is contained in:
eap 2012-12-18 10:56:35 +00:00
parent 500aed0351
commit 5ee5ad7e03

View 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 );