Interface for boolean operations (Cut, Fuse, Common) More...
import "GEOM_Gen.idl";
Public Member Functions | |
GEOM_Object | MakeBoolean (in GEOM_Object theShape1, in GEOM_Object theShape2, in long theOperation) |
Perform one of boolean operations on two given shapes. | |
GEOM_Object | MakePartition (in ListOfGO theShapes, in ListOfGO theTools, in ListOfGO theKeepInside, in ListOfGO theRemoveInside, in short theLimit, in boolean theRemoveWebs, in ListOfLong theMaterials, in short theKeepNonlimitShapes) |
Perform partition operation. | |
GEOM_Object | MakePartitionNonSelfIntersectedShape (in ListOfGO theShapes, in ListOfGO theTools, in ListOfGO theKeepInside, in ListOfGO theRemoveInside, in short theLimit, in boolean theRemoveWebs, in ListOfLong theMaterials, in short theKeepNonlimitShapes) |
Perform partition operation. | |
GEOM_Object | MakeHalfPartition (in GEOM_Object theShape, in GEOM_Object thePlane) |
Perform partition of the Shape with the Plane. | |
boolean | IsDone () |
To know, if the operation was successfully performed. | |
void | SetErrorCode (in string theErrorID) |
Set the operation error code. | |
string | GetErrorCode () |
Get the operation error code. | |
long | GetStudyID () |
Get ID of study, where the operation is defined. | |
void | StartOperation () |
Opens a new transaction. | |
void | FinishOperation () |
Closes the previously opened trasaction. | |
void | AbortOperation () |
Aborts the previously opened transaction. |
Interface for boolean operations (Cut, Fuse, Common)
GEOM_Object GEOM::GEOM_IBooleanOperations::MakeBoolean | ( | in GEOM_Object | theShape1, |
in GEOM_Object | theShape2, | ||
in long | theOperation | ||
) |
Perform one of boolean operations on two given shapes.
theShape1 | First argument for boolean operation. |
theShape2 | Second argument for boolean operation. |
theOperation | Indicates the operation to be done: 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section. |
GEOM_Object GEOM::GEOM_IBooleanOperations::MakePartition | ( | in ListOfGO | theShapes, |
in ListOfGO | theTools, | ||
in ListOfGO | theKeepInside, | ||
in ListOfGO | theRemoveInside, | ||
in short | theLimit, | ||
in boolean | theRemoveWebs, | ||
in ListOfLong | theMaterials, | ||
in short | theKeepNonlimitShapes | ||
) |
Perform partition operation.
theShapes | Shapes to be intersected. |
theTools | Shapes to intersect theShapes. |
theLimit | Type of resulting shapes (corresponding to TopAbs_ShapeEnum). |
theKeepNonlimitShapes,: | 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). |
After implementation new version of PartitionAlgo (October 2006) other parameters are ignored by current functionality. They are kept in this function only for supporting old versions. Ignored parameters:
theKeepInside | Shapes, outside which the results will be deleted. Each shape from theKeepInside must belong to theShapes also. |
theRemoveInside | Shapes, inside which the results will be deleted. Each shape from theRemoveInside must belong to theShapes also. |
theRemoveWebs | If TRUE, perform Glue 3D algorithm. |
theMaterials | Material indices for each shape. Make sence, only if theRemoveWebs is TRUE. |
GEOM_Object GEOM::GEOM_IBooleanOperations::MakePartitionNonSelfIntersectedShape | ( | in ListOfGO | theShapes, |
in ListOfGO | theTools, | ||
in ListOfGO | theKeepInside, | ||
in ListOfGO | theRemoveInside, | ||
in short | theLimit, | ||
in boolean | theRemoveWebs, | ||
in ListOfLong | theMaterials, | ||
in short | theKeepNonlimitShapes | ||
) |
Perform partition operation.
This method may be usefull if it is needed to make a partition for a compound containing nonintersected shapes. Performance will be better since intersection between shapes from compound is not performed.
Description of all parameters as in previous method MakePartition()
GEOM_Object GEOM::GEOM_IBooleanOperations::MakeHalfPartition | ( | in GEOM_Object | theShape, |
in GEOM_Object | thePlane | ||
) |
Perform partition of the Shape with the Plane.
theShape | Shape to be intersected. |
thePlane | Tool shape, to intersect theShape. |
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
theErrorID | is a string describing the error occured |
|
inherited |
Get the operation error code.
|
inherited |
Get ID of study, where the operation is defined.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened trasaction.
|
inherited |
Aborts the previously opened transaction.