X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAPI%2Fmodeler%2Fboolean.py;h=23b83a42b7d170a42abe0d55523d01b00ef90e35;hb=3e7f97125b2198724911564b24b0a30cbd393e3d;hp=adc8d661396d151e93a533507a9245e601eaffdb;hpb=fc1a9c802c59a0e853dc43125362e513b6f6358f;p=modules%2Fshaper.git diff --git a/src/PythonAPI/modeler/boolean.py b/src/PythonAPI/modeler/boolean.py index adc8d6613..23b83a42b 100644 --- a/src/PythonAPI/modeler/boolean.py +++ b/src/PythonAPI/modeler/boolean.py @@ -10,6 +10,8 @@ from GeomAlgoAPI import * class Boolean(): """Abstract root class of Boolean Features.""" def __init__(self, part, object, tool, type): + """Constructor""" + ### Create a feature self.my = part.addFeature("Boolean") self.my.data().reference("main_object").setValue(object) self.my.data().reference("tool_object").setValue(tool) @@ -22,27 +24,30 @@ class Boolean(): class Addition(Boolean): + """Inserts an addition to the given Part and executes the operation. + This operation adds tool to the given object. + """ def __init__(self, part, object, tool): - """Inserts an addition to the given Part and executes the operation. - This operation adds tool to the given object. - """ + """Constructor""" Boolean.__init__(self, part, object, tool, GeomAlgoAPI_Boolean.BOOL_FUSE) class Subtraction(Boolean): + """Inserts a subtraction to the given Part and executes the operation. + This operation subtracts tool to the given object. + """ def __init__(self, part, object, tool): - """Inserts a subtraction to the given Part and executes the operation. - This operation subtracts tool to the given object. - """ + """Constructor""" Boolean.__init__(self, part, object, tool, GeomAlgoAPI_Boolean.BOOL_CUT) class Intersection(Boolean): + """Inserts an intersection to the given Part and executes the operation. + This operation intersects tool to the given object. + """ def __init__(self, part, object, tool): - """Inserts an intersection to the given Part and executes the operation. - This operation intersects tool to the given object. - """ + """Constructor""" Boolean.__init__(self, part, object, tool, GeomAlgoAPI_Boolean.BOOL_COMMON) \ No newline at end of file