Salome HOME
Construction of vertices/edges/faces on the base of sketch: clear list attribute...
[modules/shaper.git] / src / PythonAPI / modeler / boolean.py
index adc8d661396d151e93a533507a9245e601eaffdb..23b83a42b7d170a42abe0d55523d01b00ef90e35 100644 (file)
@@ -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