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... | |
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
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
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.
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
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
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
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.
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:
|
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. |
def ConvertToStandalone | ( | self, | |
group | |||
) |
Convert group on geom into standalone group.