Functions | |
def | geompy.CreateGroup |
Creates a new group which will store sub shapes of theMainShape. | |
def | geompy.AddObject |
Adds a sub object with ID theSubShapeId to the group. | |
def | geompy.RemoveObject |
Removes a sub object with ID theSubShapeId from the group. | |
def | geompy.UnionList |
Adds to the group all the given shapes. | |
def | geompy.UnionIDs |
Works like the above method, but argument theSubShapes here is a list of sub-shapes indices. | |
def | geompy.DifferenceList |
Removes from the group all the given shapes. | |
def | geompy.DifferenceIDs |
Works like the above method, but argument theSubShapes here is a list of sub-shapes indices. | |
def | geompy.GetObjectIDs |
Returns a list of sub objects ID stored in the group. | |
def | geompy.GetType |
Returns a type of sub objects stored in the group. | |
def | geompy.GetMainShape |
Returns a main shape associated with the group. | |
def | geompy.GetEdgesByLength |
Create group of edges of theShape, whose length is in range [min_length, max_length]. | |
def | geompy.SelectEdges |
Create group of edges of selected shape, whose length is in range [min_length, max_length]. |
def geompy.CreateGroup | ( | self, | ||
theMainShape, | ||||
theShapeType | ||||
) |
def geompy.AddObject | ( | self, | ||
theGroup, | ||||
theSubShapeID | ||||
) |
Adds a sub object with ID theSubShapeId to the group.
theGroup | is a GEOM group to which the new sub shape is added | |
theSubShapeID | is a sub shape ID in the main object. |
def geompy.RemoveObject | ( | self, | ||
theGroup, | ||||
theSubShapeID | ||||
) |
Removes a sub object with ID theSubShapeId from the group.
theGroup | is a GEOM group from which the new sub shape is removed | |
theSubShapeID | is a sub shape ID in the main object. |
def geompy.UnionList | ( | self, | ||
theGroup, | ||||
theSubShapes | ||||
) |
Adds to the group all the given shapes.
No errors, if some shapes are alredy included.
theGroup | is a GEOM group to which the new sub shapes are added. | |
theSubShapes | is a list of sub shapes to be added. |
def geompy.UnionIDs | ( | self, | ||
theGroup, | ||||
theSubShapes | ||||
) |
Works like the above method, but argument theSubShapes here is a list of sub-shapes indices.
def geompy.DifferenceList | ( | self, | ||
theGroup, | ||||
theSubShapes | ||||
) |
Removes from the group all the given shapes.
No errors, if some shapes are not included.
theGroup | is a GEOM group from which the sub-shapes are removed. | |
theSubShapes | is a list of sub-shapes to be removed. |
def geompy.DifferenceIDs | ( | self, | ||
theGroup, | ||||
theSubShapes | ||||
) |
Works like the above method, but argument theSubShapes here is a list of sub-shapes indices.
def geompy.GetObjectIDs | ( | self, | ||
theGroup | ||||
) |
Returns a list of sub objects ID stored in the group.
theGroup | is a GEOM group for which a list of IDs is requested |
def geompy.GetType | ( | self, | ||
theGroup | ||||
) |
Returns a type of sub objects stored in the group.
theGroup | is a GEOM group which type is returned. |
def geompy.GetMainShape | ( | self, | ||
theGroup | ||||
) |
Returns a main shape associated with the group.
theGroup | is a GEOM group for which a main shape object is requested |
def geompy.GetEdgesByLength | ( | self, | ||
theShape, | ||||
min_length, | ||||
max_length, | ||||
include_min = 1 , |
||||
include_max = 1 | ||||
) |
Create group of edges of theShape, whose length is in range [min_length, max_length].
If include_min/max == 0, edges with length == min/max_length will not be included in result.
Example
def geompy.SelectEdges | ( | self, | ||
min_length, | ||||
max_length, | ||||
include_min = 1 , |
||||
include_max = 1 | ||||
) |
Create group of edges of selected shape, whose length is in range [min_length, max_length].
If include_min/max == 0, edges with length == min/max_length will not be included in result.
Example