mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Fix a bug that "Lying on Geom" filter rejects elements whose gravity
center is outside the shape
This commit is contained in:
parent
500aed0351
commit
5ee5ad7e03
@ -3761,7 +3761,9 @@ bool ElementsOnShape::IsSatisfy (long elemId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check the center point for volumes MantisBug 0020168
|
// 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();
|
centerXYZ /= elem->NbNodes();
|
||||||
isSatisfy = ! myClassifiers[i]->IsOut( centerXYZ );
|
isSatisfy = ! myClassifiers[i]->IsOut( centerXYZ );
|
||||||
|
Loading…
Reference in New Issue
Block a user