Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Using operations on groups

Functions

def UnionGroups
 Produce a union of two groups. More...
 
def UnionListOfGroups
 Produce a union list of groups. More...
 
def IntersectGroups
 Prodice an intersection of two groups. More...
 
def IntersectListOfGroups
 Produce an intersection of groups. More...
 
def CutGroups
 Produce a cut of two groups. More...
 
def CutListOfGroups
 Produce a cut of groups. More...
 
def CreateDimGroup
 Create a standalone group of entities basing on nodes of other groups. More...
 
def ConvertToStandalone
 Convert group on geom into standalone group. More...
 

Detailed Description

Function Documentation

def UnionGroups (   self,
  group1,
  group2,
  name 
)

Produce a union of two groups.

A new group is created. All mesh elements that are present in the initial groups are added to the new one

Returns
an instance of SMESH_Group
def UnionListOfGroups (   self,
  groups,
  name 
)

Produce a union list of groups.

New group is created. All mesh elements that are present in initial groups are added to the new one

Returns
an instance of SMESH_Group
def IntersectGroups (   self,
  group1,
  group2,
  name 
)

Prodice an intersection of two groups.

A new group is created. All mesh elements that are common for the two initial groups are added to the new one.

Returns
an instance of SMESH_Group
def IntersectListOfGroups (   self,
  groups,
  name 
)

Produce an intersection of groups.

New group is created. All mesh elements that are present in all initial groups simultaneously are added to the new one

Returns
an instance of SMESH_Group
def CutGroups (   self,
  main_group,
  tool_group,
  name 
)

Produce a cut of two groups.

A new group is created. All mesh elements that are present in the main group but are not present in the tool group are added to the new one

Returns
an instance of SMESH_Group
def CutListOfGroups (   self,
  main_groups,
  tool_groups,
  name 
)

Produce a cut of groups.

A new group is created. All mesh elements that are present in main groups but do not present in tool groups are added to the new one

Returns
an instance of SMESH_Group

References Mesh.CreateDimGroup().

def CreateDimGroup (   self,
  groups,
  elemType,
  name,
  nbCommonNodes = SMESH.ALL_NODES,
  underlyingOnly = True 
)

Create a standalone group of entities basing on nodes of other groups.

Parameters
groups- list of reference groups, sub-meshes or filters, of any type.
elemType- a type of elements to include to the new group; either of (SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME).
name- a name of the new group.
nbCommonNodes- a criterion of inclusion of an element to the new group basing on number of element nodes common with reference groups. Meaning of possible values are:
  • SMESH.ALL_NODES - include if all nodes are common,
  • SMESH.MAIN - include if all corner nodes are common (meaningful for a quadratic mesh),
  • SMESH.AT_LEAST_ONE - include if one or more node is common,
  • SMEHS.MAJORITY - include if half of nodes or more are common.
underlyingOnly- if True (default), an element is included to the new group provided that it is based on nodes of an element of groups; in this case the reference groups are supposed to be of higher dimension than elemType, which can be useful for example to get all faces lying on volumes of the reference groups.
Returns
an instance of SMESH_Group
def ConvertToStandalone (   self,
  group 
)

Convert group on geom into standalone group.