mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 14:05:37 +05:00
NPAL14419 IMP: a filter predicate to find nodes/elements lying on any
kind of geom surface needed in ElementsOnSurface, clear IDs if parameters change
This commit is contained in:
parent
78d8c9474d
commit
cec6b2940b
@ -2554,22 +2554,27 @@ SMDSAbs_ElementType ElementsOnSurface::GetType() const
|
|||||||
{ return myType; }
|
{ return myType; }
|
||||||
|
|
||||||
void ElementsOnSurface::SetTolerance( const double theToler )
|
void ElementsOnSurface::SetTolerance( const double theToler )
|
||||||
{ myToler = theToler; }
|
{
|
||||||
|
if ( myToler != theToler )
|
||||||
|
myIds.Clear();
|
||||||
|
myToler = theToler;
|
||||||
|
}
|
||||||
|
|
||||||
double ElementsOnSurface::GetTolerance() const
|
double ElementsOnSurface::GetTolerance() const
|
||||||
{ return myToler; }
|
{ return myToler; }
|
||||||
|
|
||||||
void ElementsOnSurface::SetUseBoundaries( bool theUse )
|
void ElementsOnSurface::SetUseBoundaries( bool theUse )
|
||||||
{
|
{
|
||||||
bool diff = ( myUseBoundaries != theUse );
|
if ( myUseBoundaries != theUse ) {
|
||||||
myUseBoundaries = theUse;
|
myUseBoundaries = theUse;
|
||||||
if ( diff )
|
|
||||||
SetSurface( mySurf, myType );
|
SetSurface( mySurf, myType );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElementsOnSurface::SetSurface( const TopoDS_Shape& theShape,
|
void ElementsOnSurface::SetSurface( const TopoDS_Shape& theShape,
|
||||||
const SMDSAbs_ElementType theType )
|
const SMDSAbs_ElementType theType )
|
||||||
{
|
{
|
||||||
|
myIds.Clear();
|
||||||
myType = theType;
|
myType = theType;
|
||||||
mySurf.Nullify();
|
mySurf.Nullify();
|
||||||
if ( theShape.IsNull() || theShape.ShapeType() != TopAbs_FACE )
|
if ( theShape.IsNull() || theShape.ShapeType() != TopAbs_FACE )
|
||||||
|
Loading…
Reference in New Issue
Block a user