Additional changes: fix bugs, update documentation
\code
import geompy
import GEOM
+import SALOMEDS
# create a box and a cylinder
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
if (!CORBA::is_nil(aSubO))
aGroupOp->UnionIDs(aSubO, anIDs);
}
- else {
+ else if (anIDs->length() > 0) {
// single sub-shape
aSubO = aShapesOp->GetSubShape(theObject, anIDs[0]);
}
# ! documentation generation to identify certain places of this file
#
def TestAll (geompy, math):
-
+ import GEOM
+
#Create base Variables
nbtimes1 = 5 #Short
nbtimes2 = 5
if ind_e != ind:
print "Error in GetSubShape or GetSubShapeID"
+ #RestoreSubShapes
+ geompy.RestoreSubShapes(Copy)
+ geompy.RestoreSubShapes(RotatPnt, [], GEOM.FSM_Transformed)
+ geompy.RestoreSubShapes(Partition, [Box])
+ geompy.RestoreSubShapes(Partition1)
+
print "DONE"