SALOME documentation central

Quality controls and Filtering

Functions

def EnumToLong
 Returns a long value from enumeration Should be used for SMESH.FunctorType enumeration.
def GetEmptyCriterion
 Creates an empty criterion.
def GetCriterion
 Creates a criterion by the given parameters.
def GetFilter
 Creates a filter with the given parameters.
def GetFunctor
 Creates a numerical functor by its type.
def GetIdsFromFilter
 Passes mesh elements through the given filter and return IDs of fitting elements.
def GetFreeBorders
 Verifies whether a 2D mesh element has free edges (edges connected to one face only)
Returns a list of special structures (borders).

Function Documentation

def EnumToLong (   self,
  theItem 
) [inherited]

Returns a long value from enumeration Should be used for SMESH.FunctorType enumeration.

def GetEmptyCriterion (   self  )  [inherited]

Creates an empty criterion.

Returns:
SMESH.Filter.Criterion
def GetCriterion (   self,
  elementType,
  CritType,
  Compare = FT_EqualTo,
  Treshold = "",
  UnaryOp = FT_Undefined,
  BinaryOp = FT_Undefined 
) [inherited]

Creates a criterion by the given parameters.

Parameters:
elementType the type of elements(NODE, EDGE, FACE, VOLUME)
CritType the type of criterion (FT_Taper, FT_Area, FT_RangeOfIds, FT_LyingOnGeom etc.)
Compare belongs to {FT_LessThan, FT_MoreThan, FT_EqualTo}
Treshold the threshold value (range of ids as string, shape, numeric)
UnaryOp FT_LogicalNOT or FT_Undefined
BinaryOp a binary logical operation FT_LogicalAND, FT_LogicalOR or FT_Undefined (must be for the last criterion of all criteria)
Returns:
SMESH.Filter.Criterion
def GetFilter (   self,
  elementType,
  CritType = FT_Undefined,
  Compare = FT_EqualTo,
  Treshold = "",
  UnaryOp = FT_Undefined 
) [inherited]

Creates a filter with the given parameters.

Parameters:
elementType the type of elements in the group
CritType the type of criterion ( FT_Taper, FT_Area, FT_RangeOfIds, FT_LyingOnGeom etc. )
Compare belongs to {FT_LessThan, FT_MoreThan, FT_EqualTo}
Treshold the threshold value (range of id ids as string, shape, numeric)
UnaryOp FT_LogicalNOT or FT_Undefined
Returns:
SMESH_Filter
def GetFunctor (   self,
  theCriterion 
) [inherited]

Creates a numerical functor by its type.

Parameters:
theCriterion FT_...; functor type
Returns:
SMESH_NumericalFunctor
def GetIdsFromFilter (   self,
  theFilter 
) [inherited]

Passes mesh elements through the given filter and return IDs of fitting elements.

Parameters:
theFilter SMESH_Filter
Returns:
a list of ids
def GetFreeBorders (   self  )  [inherited]

Verifies whether a 2D mesh element has free edges (edges connected to one face only)
Returns a list of special structures (borders).

Returns:
a list of SMESH.FreeEdges.Border structure: edge id and ids of two its nodes.
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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