Version: 6.3.1
Public Member Functions | Data Fields

SMESH.Controls.FreeEdges.Border Struct Reference

#include <SMESH_ControlsDef.hxx>

Public Member Functions

 Border (long theElemId, long thePntId1, long thePntId2)
bool operator< (const Border &x) const

Data Fields

TElemId myElemId
TElemId myPntId [2]

Detailed Description

Definition at line 460 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

FreeEdges::Border::Border ( long  theElemId,
long  thePntId1,
long  thePntId2 
)

Definition at line 2176 of file SMESH_Controls.cxx.

References SMESH.Controls.FreeEdges.Border.myPntId.

                                                                     :
  myElemId(theElemId)
{
  myPntId[0] = thePntId1;  myPntId[1] = thePntId2;
  if(thePntId1 > thePntId2){
    myPntId[1] = thePntId1;  myPntId[0] = thePntId2;
  }
}

Member Function Documentation

bool FreeEdges::Border::operator< ( const Border x) const

Definition at line 2185 of file SMESH_Controls.cxx.

References SMESH.Controls.FreeEdges.Border.myPntId.

                                                             {
  if(myPntId[0] < x.myPntId[0]) return true;
  if(myPntId[0] == x.myPntId[0])
    if(myPntId[1] < x.myPntId[1]) return true;
  return false;
}

Field Documentation

Definition at line 461 of file SMESH_ControlsDef.hxx.

Referenced by SMESH.FreeEdges_i.GetBorders().

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