#include <SMESH_ControlsDef.hxx>

Public Member Functions | |
| BareBorderVolume () | |
| virtual void | SetMesh (const SMDS_Mesh *theMesh) |
| virtual SMDSAbs_ElementType | GetType () const |
| virtual bool | IsSatisfy (long theElementId) |
Protected Attributes | |
| const SMDS_Mesh * | myMesh |
Definition at line 389 of file SMESH_ControlsDef.hxx.
| SMESH.Controls.BareBorderVolume.BareBorderVolume | ( | ) |
Definition at line 392 of file SMESH_ControlsDef.hxx.
:myMesh(0) {}
| virtual SMDSAbs_ElementType SMESH.Controls.BareBorderVolume.GetType | ( | ) | const [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 394 of file SMESH_ControlsDef.hxx.
References SMDSAbs_Volume.
{ return SMDSAbs_Volume; }
| bool BareBorderVolume::IsSatisfy | ( | long | theElementId | ) | [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 1961 of file SMESH_Controls.cxx.
References SMDS_Mesh.FindElement(), SMDS_VolumeTool.GetFaceNodes(), SMDS_VolumeTool.IsFreeFace(), SMESH.Controls.NumericalFunctor.myMesh, SMDS_VolumeTool.NbFaceNodes(), SMDS_VolumeTool.NbFaces(), SMESH_AdvancedEditor.nodes, SMDS_VolumeTool.Set(), and SMDSAbs_Face.
{
SMDS_VolumeTool myTool;
if ( myTool.Set( myMesh->FindElement(theElementId)))
{
for ( int iF = 0; iF < myTool.NbFaces(); ++iF )
if ( myTool.IsFreeFace( iF ))
{
const SMDS_MeshNode** n = myTool.GetFaceNodes(iF);
vector< const SMDS_MeshNode*> nodes( n, n+myTool.NbFaceNodes(iF));
if ( !myMesh->FindElement( nodes, SMDSAbs_Face, /*Nomedium=*/false))
return true;
}
}
return false;
}
| virtual void SMESH.Controls.BareBorderVolume.SetMesh | ( | const SMDS_Mesh * | theMesh | ) | [virtual] |
Implements SMESH.Controls.Functor.
Definition at line 393 of file SMESH_ControlsDef.hxx.
{ myMesh = theMesh; }
const SMDS_Mesh* SMESH.Controls.BareBorderVolume.myMesh [protected] |
Definition at line 397 of file SMESH_ControlsDef.hxx.