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). |
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.
def GetCriterion | ( | self, | ||
elementType, | ||||
CritType, | ||||
Compare = FT_EqualTo , |
||||
Treshold = "" , |
||||
UnaryOp = FT_Undefined , |
||||
BinaryOp = FT_Undefined | ||||
) | [inherited] |
Creates a criterion by the given 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) |
def GetFilter | ( | self, | ||
elementType, | ||||
CritType = FT_Undefined , |
||||
Compare = FT_EqualTo , |
||||
Treshold = "" , |
||||
UnaryOp = FT_Undefined | ||||
) | [inherited] |
Creates a filter with the given 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 |
def GetFunctor | ( | self, | ||
theCriterion | ||||
) | [inherited] |
Creates a numerical functor by its type.
theCriterion | FT_...; functor type |
def GetIdsFromFilter | ( | self, | ||
theFilter | ||||
) | [inherited] |
Passes mesh elements through the given filter and return IDs of fitting elements.
theFilter | SMESH_Filter |
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).