Functions | |
def | MakePartition |
Perform partition operation. More... | |
def | MakePartitionNonSelfIntersectedShape |
Perform partition operation. More... | |
def | Partition |
See method MakePartition() for more information. More... | |
def | MakeHalfPartition |
Perform partition of the Shape with the Plane. More... | |
def | Archimede |
Perform an Archimde operation on the given shape with given parameters. More... | |
def MakePartition | ( | self, | |
ListShapes, | |||
ListTools = [] , |
|||
ListKeepInside = [] , |
|||
ListRemoveInside = [] , |
|||
Limit = ShapeType["AUTO"] , |
|||
RemoveWebs = 0 , |
|||
ListMaterials = [] , |
|||
KeepNonlimitShapes = 0 , |
|||
theName = None |
|||
) |
Perform partition operation.
ListShapes | Shapes to be intersected. |
ListTools | Shapes to intersect theShapes. |
Limit | Type of resulting shapes (see ShapeType()). If this parameter is set to -1 ("Auto"), most appropriate shape limit type will be detected automatically. |
KeepNonlimitShapes | if this parameter == 0, then only shapes of target type (equal to Limit) are kept in the result, else standalone shapes of lower dimension are kept also (if they exist). |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
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.
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. |
References geomBuilder._autoPublish(), geomBuilder.BoolOp, geomBuilder.EnumToLong(), geomBuilder.MakePartitionNonSelfIntersectedShape(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapeType.
def MakePartitionNonSelfIntersectedShape | ( | self, | |
ListShapes, | |||
ListTools = [] , |
|||
ListKeepInside = [] , |
|||
ListRemoveInside = [] , |
|||
Limit = ShapeType["AUTO"] , |
|||
RemoveWebs = 0 , |
|||
ListMaterials = [] , |
|||
KeepNonlimitShapes = 0 , |
|||
checkSelfInte = False , |
|||
theName = None |
|||
) |
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(). One additional parameter is provided:
checkSelfInte | The flag that tells if the arguments should be checked for self-intersection prior to the operation. |
Example
References geomBuilder._autoPublish(), geomBuilder.BoolOp, geomBuilder.EnumToLong(), geomBuilder.Partition(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapeType.
def Partition | ( | self, | |
ListShapes, | |||
ListTools = [] , |
|||
ListKeepInside = [] , |
|||
ListRemoveInside = [] , |
|||
Limit = ShapeType["AUTO"] , |
|||
RemoveWebs = 0 , |
|||
ListMaterials = [] , |
|||
KeepNonlimitShapes = 0 , |
|||
theName = None |
|||
) |
See method MakePartition() for more information.
References geomBuilder.MakePartition(), and geomBuilder.ManageTransactions().
def MakeHalfPartition | ( | self, | |
theShape, | |||
thePlane, | |||
theName = None |
|||
) |
Perform partition of the Shape with the Plane.
theShape | Shape to be intersected. |
thePlane | Tool shape, to intersect theShape. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BoolOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def Archimede | ( | self, | |
theShape, | |||
theWeight, | |||
theWaterDensity, | |||
theMeshDeflection, | |||
theName = None |
|||
) |
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 of the shape. |
theWaterDensity | Density of the water. |
theMeshDeflection | Deflection of the mesh, using to compute the section. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().