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 | GroupOnFilter |
Creates 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. | |
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. |
def CreateEmptyGroup | ( | self, | |
elementType, | |||
name | |||
) |
Creates an empty mesh group.
elementType | the type of elements in the group |
name | the name of the mesh group |
def Group | ( | self, | |
grp, | |||
name = "" |
|||
) |
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().
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 |
|||
) |
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.
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 |
References Mesh._groupTypeFromShape(), and smesh.AssureGeomPublished().
def GroupOnFilter | ( | self, | |
typ, | |||
name, | |||
filter | |||
) |
Creates 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 |
name | the name of the mesh group |
filter | the filter defining group contents |
def MakeGroupByIds | ( | self, | |
groupName, | |||
elementType, | |||
elemIDs | |||
) |
Creates a mesh group by the given ids of elements.
groupName | the name of the mesh group |
elementType | the type of elements in the group |
elemIDs | the list of ids |
References Mesh.MakeGroup().
def MakeGroup | ( | self, | |
groupName, | |||
elementType, | |||
CritType = FT_Undefined , |
|||
Compare = FT_EqualTo , |
|||
Threshold = "" , |
|||
UnaryOp = FT_Undefined , |
|||
Tolerance = 1e-07 |
|||
) |
Creates a mesh group by the given conditions.
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} |
Threshold | the threshold value (range of id ids as string, shape, numeric) |
UnaryOp | FT_LogicalNOT or FT_Undefined |
Tolerance | the tolerance used by FT_BelongToGeom, FT_BelongToSurface, FT_LyingOnGeom, FT_CoplanarFaces criteria |
References Mesh.MakeGroupByCriterion().
def MakeGroupByCriterion | ( | self, | |
groupName, | |||
Criterion | |||
) |
Creates a mesh group by the given criterion.
groupName | the name of the mesh group |
Criterion | the instance of Criterion class |
References Mesh.MakeGroupByFilter().
def MakeGroupByCriteria | ( | self, | |
groupName, | |||
theCriteria | |||
) |
Creates a mesh group by the given criteria (list of criteria)
groupName | the name of the mesh group |
theCriteria | the list of criteria |
References Mesh.MakeGroupByFilter().
def MakeGroupByFilter | ( | self, | |
groupName, | |||
theFilter | |||
) |
Creates a mesh group by the given filter.
groupName | the name of the mesh group |
theFilter | the instance of Filter class |
References Mesh.CreateEmptyGroup(), and Mesh.mesh.
def GetGroups | ( | self | ) |
Gets the list of groups existing in the mesh.
def NbGroups | ( | self | ) |
Gets the number of groups existing in the mesh.
def GetGroupNames | ( | self | ) |
Gets the list of names of groups existing in the mesh.
References Mesh.GetGroups().