Functions | |
def | geompy.MakePartition |
Perform partition operation. | |
def | geompy.MakePartitionNonSelfIntersectedShape |
Perform partition operation. | |
def | geompy.Partition |
Shortcut to MakePartition(). | |
def | geompy.MakeHalfPartition |
Perform partition of the Shape with the Plane. | |
def | geompy.Archimede |
Perform an Archimde operation on the given shape with given parameters. |
def geompy.MakePartition | ( | self, | ||
ListShapes, | ||||
ListTools = [] , |
||||
ListKeepInside = [] , |
||||
ListRemoveInside = [] , |
||||
Limit = ShapeType["SHAPE"] , |
||||
RemoveWebs = 0 , |
||||
ListMaterials = [] , |
||||
KeepNonlimitShapes = 0 | ||||
) |
Perform partition operation.
ListShapes | Shapes to be intersected. | |
ListTools | Shapes to intersect theShapes. !!!NOTE: Each compound from ListShapes and ListTools will be exploded in order to avoid possible intersection between shapes from this compound. | |
Limit | Type of resulting shapes (corresponding to TopAbs_ShapeEnum). | |
KeepNonlimitShapes,: | if this parameter == 0 - only shapes with type <= Limit are kept in the result, else - shapes with type > Limit are kept also (if they exist) |
After implementation new version of PartitionAlgo (October 2006) other parameters are ignored by current functionality. They are kept in this function only for support old versions. Ignored parameters:
ListKeepInside | Shapes, outside which the results will be deleted. Each shape from theKeepInside must belong to theShapes also. | |
ListRemoveInside | Shapes, inside which the results will be deleted. Each shape from theRemoveInside must belong to theShapes also. | |
RemoveWebs | If TRUE, perform Glue 3D algorithm. | |
ListMaterials | Material indices for each shape. Make sence, only if theRemoveWebs is TRUE. |
def geompy.MakePartitionNonSelfIntersectedShape | ( | self, | ||
ListShapes, | ||||
ListTools = [] , |
||||
ListKeepInside = [] , |
||||
ListRemoveInside = [] , |
||||
Limit = ShapeType["SHAPE"] , |
||||
RemoveWebs = 0 , |
||||
ListMaterials = [] , |
||||
KeepNonlimitShapes = 0 | ||||
) |
Perform partition operation.
This method may be useful if it is needed to make a partition for compound contains nonintersected shapes. Performance will be better since intersection between shapes from compound is not performed.
Description of all parameters as in previous method MakePartition()
!!!NOTE: Passed compounds (via ListShapes or via ListTools) have to consist of nonintersecting shapes.
Example
def geompy.Partition | ( | self, | ||
ListShapes, | ||||
ListTools = [] , |
||||
ListKeepInside = [] , |
||||
ListRemoveInside = [] , |
||||
Limit = ShapeType["SHAPE"] , |
||||
RemoveWebs = 0 , |
||||
ListMaterials = [] , |
||||
KeepNonlimitShapes = 0 | ||||
) |
Shortcut to MakePartition().
def geompy.MakeHalfPartition | ( | self, | ||
theShape, | ||||
thePlane | ||||
) |
Perform partition of the Shape with the Plane.
theShape | Shape to be intersected. | |
thePlane | Tool shape, to intersect theShape. |
def geompy.Archimede | ( | self, | ||
theShape, | ||||
theWeight, | ||||
theWaterDensity, | ||||
theMeshDeflection | ||||
) |
Perform an Archimde operation on the given shape with given parameters.
The object presenting the resulting face is returned.
theShape | Shape to be put in water. | |
theWeight | Weight og the shape. | |
theWaterDensity | Density of the water. | |
theMeshDeflection | Deflection of the mesh, using to compute the section. |