Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.BareBorderVolume Class Reference

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH.Controls.BareBorderVolume:
Inheritance graph
[legend]

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_MeshmyMesh

Detailed Description

Definition at line 389 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

SMESH.Controls.BareBorderVolume.BareBorderVolume ( )

Definition at line 392 of file SMESH_ControlsDef.hxx.

:myMesh(0) {}

Member Function Documentation

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; }

Field Documentation

Definition at line 397 of file SMESH_ControlsDef.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS