Version: 6.3.1
Home
Functions

Creating groups

Grouping elements

Functions

def CreateEmptyGroup
 Creates an empty mesh group.
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 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 CreateEmptyGroup (   self,
  elementType,
  name 
) [inherited]

Creates an empty mesh group.

Parameters:
elementTypethe type of elements in the group
namethe name of the mesh group
Returns:
SMESH_Group
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:
grpa geometric group, a vertex, an edge, a face or a solid
namethe name of the mesh group
Returns:
SMESH_GroupOnGeom
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:
grpa geometrical group, a vertex, an edge, a face or a solid
namethe name of the mesh group
typthe 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:
groupNamethe name of the mesh group
elementTypethe type of elements in the group
elemIDsthe list of ids
Returns:
SMESH_Group
def MakeGroup (   self,
  groupName,
  elementType,
  CritType = FT_Undefined,
  Compare = FT_EqualTo,
  Treshold = "",
  UnaryOp = FT_Undefined,
  Tolerance = 1e-07 
) [inherited]

Creates a mesh group by the given conditions.

Parameters:
groupNamethe name of the mesh group
elementTypethe type of elements in the group
CritTypethe type of criterion( FT_Taper, FT_Area, FT_RangeOfIds, FT_LyingOnGeom etc. )
Comparebelongs to {FT_LessThan, FT_MoreThan, FT_EqualTo}
Tresholdthe threshold value (range of id ids as string, shape, numeric)
UnaryOpFT_LogicalNOT or FT_Undefined
Tolerancethe tolerance used by FT_BelongToGeom, FT_BelongToSurface, FT_LyingOnGeom, FT_CoplanarFaces criteria
Returns:
SMESH_Group
def MakeGroupByCriterion (   self,
  groupName,
  Criterion 
) [inherited]

Creates a mesh group by the given criterion.

Parameters:
groupNamethe name of the mesh group
Criterionthe 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:
groupNamethe name of the mesh group
theCriteriathe list of criteria
Returns:
SMESH_Group
def MakeGroupByFilter (   self,
  groupName,
  theFilter 
) [inherited]

Creates a mesh group by the given filter.

Parameters:
groupNamethe name of the mesh group
theFilterthe 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-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