SALOME documentation central

Creating groups
[Grouping elements]

Functions

def Group
 Creates a mesh group based on the geometric object grp and gives a name,
if this parameter is not defined the name is the same as the geometric group name
Note: Works like GroupOnGeom().
def CreateEmptyGroup
 Creates an empty mesh group.
def GroupOnGeom
 Creates a mesh group based on the geometrical object grp and gives a name,
if this parameter is not defined the name is the same as the geometrical group name.
def MakeGroupByIds
 Creates a mesh group by the given ids of elements.
def MakeGroup
 Creates a mesh group by the given conditions.
def MakeGroupByCriterion
 Creates a mesh group by the given criterion.
def MakeGroupByCriteria
 Creates a mesh group by the given criteria (list of criteria).
def MakeGroupByFilter
 Creates a mesh group by the given filter.
def GetGroups
 Gets the list of groups existing in the mesh.
def NbGroups
 Gets the number of groups existing in the mesh.
def GetGroupNames
 Gets the list of names of groups existing in the mesh.

Function Documentation

def Group (   self,
  grp,
  name = "" 
) [inherited]

Creates a mesh group based on the geometric object grp and gives a name,
if this parameter is not defined the name is the same as the geometric group name
Note: Works like GroupOnGeom().

Parameters:
grp a geometric group, a vertex, an edge, a face or a solid
name the name of the mesh group
Returns:
SMESH_GroupOnGeom
def CreateEmptyGroup (   self,
  elementType,
  name 
) [inherited]

Creates an empty mesh group.

Parameters:
elementType the type of elements in the group
name the name of the mesh group
Returns:
SMESH_Group
def GroupOnGeom (   self,
  grp,
  name = "",
  typ = None 
) [inherited]

Creates a mesh group based on the geometrical object grp and gives a name,
if this parameter is not defined the name is the same as the geometrical group name.

Parameters:
grp a geometrical group, a vertex, an edge, a face or a solid
name the name of the mesh group
typ the type of elements in the group. If not set, it is automatically detected by the type of the geometry
Returns:
SMESH_GroupOnGeom
def MakeGroupByIds (   self,
  groupName,
  elementType,
  elemIDs 
) [inherited]

Creates a mesh group by the given ids of elements.

Parameters:
groupName the name of the mesh group
elementType the type of elements in the group
elemIDs the list of ids
Returns:
SMESH_Group
def MakeGroup (   self,
  groupName,
  elementType,
  CritType = FT_Undefined,
  Compare = FT_EqualTo,
  Treshold = "",
  UnaryOp = FT_Undefined 
) [inherited]

Creates a mesh group by the given conditions.

Parameters:
groupName the name of the mesh group
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_Group
def MakeGroupByCriterion (   self,
  groupName,
  Criterion 
) [inherited]

Creates a mesh group by the given criterion.

Parameters:
groupName the name of the mesh group
Criterion the instance of Criterion class
Returns:
SMESH_Group
def MakeGroupByCriteria (   self,
  groupName,
  theCriteria 
) [inherited]

Creates a mesh group by the given criteria (list of criteria).

Parameters:
groupName the name of the mesh group
theCriteria the list of criteria
Returns:
SMESH_Group
def MakeGroupByFilter (   self,
  groupName,
  theFilter 
) [inherited]

Creates a mesh group by the given filter.

Parameters:
groupName the name of the mesh group
theFilter the instance of Filter class
Returns:
SMESH_Group
def GetGroups (   self  )  [inherited]

Gets the list of groups existing in the mesh.

Returns:
a sequence of SMESH_GroupBase
def NbGroups (   self  )  [inherited]

Gets the number of groups existing in the mesh.

Returns:
the quantity of groups as an integer value
def GetGroupNames (   self  )  [inherited]

Gets the list of names of groups existing in the mesh.

Returns:
list of strings
 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