Functions | |
def | CreateEmptyGroup |
Create an empty mesh group. More... | |
def | Group |
Create 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(). More... | |
def | GroupOnGeom |
Create 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. More... | |
def | GroupOnFilter |
Create a mesh group with given name based on the filter which is a special type of group dynamically updating it's contents during mesh modification. More... | |
def | MakeGroupByIds |
Create a mesh group by the given ids of elements. More... | |
def | MakeGroup |
Create a mesh group by the given conditions. More... | |
def | MakeGroupByCriterion |
Create a mesh group by the given criterion. More... | |
def | MakeGroupByCriteria |
Create a mesh group by the given criteria (list of criteria) More... | |
def | MakeGroupByFilter |
Create a mesh group by the given filter. More... | |
def | GetGroups |
Get the list of groups existing in the mesh in the order of creation (starting from the oldest one) More... | |
def | NbGroups |
Get the number of groups existing in the mesh. More... | |
def | GetGroupNames |
Get the list of names of groups existing in the mesh. More... | |
def | GetGroupByName |
Find groups by name and type. More... | |
def CreateEmptyGroup | ( | self, | |
elementType, | |||
name | |||
) |
Create an empty mesh group.
elementType | the type of elements in the group; either of (SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME) |
name | the name of the mesh group |
def Group | ( | self, | |
grp, | |||
name = "" |
|||
) |
Create 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().
grp | a geometric group, a vertex, an edge, a face or a solid |
name | the name of the mesh group |
References Mesh.GroupOnGeom().
def GroupOnGeom | ( | self, | |
grp, | |||
name = "" , |
|||
typ = None |
|||
) |
Create 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.
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; either of (SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME). If not set, it is automatically detected by the type of the geometry |
References Mesh._groupTypeFromShape(), and smeshBuilder.AssureGeomPublished().
def GroupOnFilter | ( | self, | |
typ, | |||
name, | |||
filter | |||
) |
Create a mesh group with given name based on the filter which is a special type of group dynamically updating it's contents during mesh modification.
typ | the type of elements in the group; either of (SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME). |
name | the name of the mesh group |
filter | the filter defining group contents |
def MakeGroupByIds | ( | self, | |
groupName, | |||
elementType, | |||
elemIDs | |||
) |
Create a mesh group by the given ids of elements.
groupName | the name of the mesh group |
elementType | the type of elements in the group; either of (SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME). |
elemIDs | either the list of ids, group, sub-mesh, or filter |
References Mesh.GetMesh(), and Mesh.MakeGroup().
def MakeGroup | ( | self, | |
groupName, | |||
elementType, | |||
CritType = FT_Undefined , |
|||
Compare = FT_EqualTo , |
|||
Threshold = "" , |
|||
UnaryOp = FT_Undefined , |
|||
Tolerance = 1e-07 |
|||
) |
Create a mesh group by the given conditions.
groupName | the name of the mesh group |
elementType | the type of elements(SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME) |
CritType | the type of criterion (SMESH.FT_Taper, SMESH.FT_Area, etc.) Type SMESH.FunctorType._items in the Python Console to see all values. Note that the items starting from FT_LessThan are not suitable for CritType. |
Compare | belongs to {SMESH.FT_LessThan, SMESH.FT_MoreThan, SMESH.FT_EqualTo} |
Threshold | the threshold value (range of ids as string, shape, numeric) |
UnaryOp | SMESH.FT_LogicalNOT or SMESH.FT_Undefined |
Tolerance | the tolerance used by SMESH.FT_BelongToGeom, SMESH.FT_BelongToSurface, SMESH.FT_LyingOnGeom, SMESH.FT_CoplanarFaces criteria |
References Mesh.MakeGroupByCriterion().
def MakeGroupByCriterion | ( | self, | |
groupName, | |||
Criterion | |||
) |
Create a mesh group by the given criterion.
groupName | the name of the mesh group |
Criterion | the instance of Criterion class |
References Mesh.MakeGroupByCriteria().
def MakeGroupByCriteria | ( | self, | |
groupName, | |||
theCriteria, | |||
binOp = SMESH.FT_LogicalAND |
|||
) |
Create a mesh group by the given criteria (list of criteria)
groupName | the name of the mesh group |
theCriteria | the list of criteria |
binOp | binary operator used when binary operator of criteria is undefined |
References Mesh.MakeGroupByFilter().
def MakeGroupByFilter | ( | self, | |
groupName, | |||
theFilter | |||
) |
Create a mesh group by the given filter.
groupName | the name of the mesh group |
theFilter | the instance of Filter class |
References Mesh.GroupOnFilter().
def GetGroups | ( | self, | |
elemType = SMESH.ALL |
|||
) |
Get the list of groups existing in the mesh in the order of creation (starting from the oldest one)
elemType | type of elements the groups contain; either of (SMESH.ALL, SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME); by default groups of elements of all types are returned |
def NbGroups | ( | self | ) |
Get the number of groups existing in the mesh.
def GetGroupNames | ( | self | ) |
Get the list of names of groups existing in the mesh.
References Mesh.GetGroups().
def GetGroupByName | ( | self, | |
name, | |||
elemType = None |
|||
) |
Find groups by name and type.
name | name of the group of interest |
elemType | type of elements the groups contain; either of (SMESH.ALL, SMESH.NODE, SMESH.EDGE, SMESH.FACE, SMESH.VOLUME); by default one group of any type of elements is returned if elemType == SMESH.ALL then all groups of any type are returned |
References Mesh.GetGroups().