Back to index

salome-geom  6.5.0
Functions
Boolean Operations
Transforming geometrical objects
Collaboration diagram for Boolean Operations:

Functions

def geompyDC.geompyDC.MakeBoolean
 Perform one of boolean operations on two given shapes.
def geompyDC.geompyDC.MakeCommon
 Perform Common boolean operation on two given shapes.
def geompyDC.geompyDC.MakeCut
 Perform Cut boolean operation on two given shapes.
def geompyDC.geompyDC.MakeFuse
 Perform Fuse boolean operation on two given shapes.
def geompyDC.geompyDC.MakeSection
 Perform Section boolean operation on two given shapes.

Function Documentation

def geompyDC.geompyDC.MakeBoolean (   self,
  theShape1,
  theShape2,
  theOperation 
)

Perform one of boolean operations on two given shapes.

Parameters:
theShape1First argument for boolean operation.
theShape2Second argument for boolean operation.
theOperationIndicates the operation to be done:
1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example

Perform one of boolean operations on two given shapes.

Parameters: 
    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.

Returns:   
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 4886 of file geompyDC.py.

04886 
04887         def MakeBoolean(self,theShape1, theShape2, theOperation):
04888             """
04889             Perform one of boolean operations on two given shapes.
04890 
04891             Parameters: 
04892                 theShape1 First argument for boolean operation.
04893                 theShape2 Second argument for boolean operation.
04894                 theOperation Indicates the operation to be done:
04895                              1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
04896 
04897             Returns:   
04898                 New GEOM.GEOM_Object, containing the result shape.
04899             """
04900             # Example: see GEOM_TestAll.py
04901             anObj = self.BoolOp.MakeBoolean(theShape1, theShape2, theOperation)
04902             RaiseIfFailed("MakeBoolean", self.BoolOp)
04903             return anObj

Here is the call graph for this function:

Here is the caller graph for this function:

def geompyDC.geompyDC.MakeCommon (   self,
  theShape1,
  theShape2 
)

Perform Common boolean operation on two given shapes.

Parameters:
theShape1First argument for boolean operation.
theShape2Second argument for boolean operation.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

Perform Common boolean operation on two given shapes.

Parameters: 
    theShape1 First argument for boolean operation.
    theShape2 Second argument for boolean operation.
 
Returns:   
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 4911 of file geompyDC.py.

04911 
04912         def MakeCommon(self, theShape1, theShape2):
04913             """
04914             Perform Common boolean operation on two given shapes.
04915 
04916             Parameters: 
04917                 theShape1 First argument for boolean operation.
04918                 theShape2 Second argument for boolean operation.
04919  
04920             Returns:   
04921                 New GEOM.GEOM_Object, containing the result shape.
04922             """
04923             # Example: see GEOM_TestOthers.py
04924             return self.MakeBoolean(theShape1, theShape2, 1)

Here is the call graph for this function:

def geompyDC.geompyDC.MakeCut (   self,
  theShape1,
  theShape2 
)

Perform Cut boolean operation on two given shapes.

Parameters:
theShape1First argument for boolean operation.
theShape2Second argument for boolean operation.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

Perform Cut boolean operation on two given shapes.

Parameters: 
    theShape1 First argument for boolean operation.
    theShape2 Second argument for boolean operation.
 
Returns:   
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 4932 of file geompyDC.py.

04932 
04933         def MakeCut(self, theShape1, theShape2):
04934             """
04935             Perform Cut boolean operation on two given shapes.
04936 
04937             Parameters: 
04938                 theShape1 First argument for boolean operation.
04939                 theShape2 Second argument for boolean operation.
04940  
04941             Returns:   
04942                 New GEOM.GEOM_Object, containing the result shape.
04943             
04944             """
04945             # Example: see GEOM_TestOthers.py
04946             return self.MakeBoolean(theShape1, theShape2, 2)

Here is the call graph for this function:

def geompyDC.geompyDC.MakeFuse (   self,
  theShape1,
  theShape2 
)

Perform Fuse boolean operation on two given shapes.

Parameters:
theShape1First argument for boolean operation.
theShape2Second argument for boolean operation.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

Perform Fuse boolean operation on two given shapes.

Parameters: 
    theShape1 First argument for boolean operation.
    theShape2 Second argument for boolean operation.
 
Returns:   
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 4954 of file geompyDC.py.

04954 
04955         def MakeFuse(self, theShape1, theShape2):
04956             """
04957             Perform Fuse boolean operation on two given shapes.
04958 
04959             Parameters: 
04960                 theShape1 First argument for boolean operation.
04961                 theShape2 Second argument for boolean operation.
04962  
04963             Returns:   
04964                 New GEOM.GEOM_Object, containing the result shape.
04965             
04966             """
04967             # Example: see GEOM_TestOthers.py
04968             return self.MakeBoolean(theShape1, theShape2, 3)

Here is the call graph for this function:

def geompyDC.geompyDC.MakeSection (   self,
  theShape1,
  theShape2 
)

Perform Section boolean operation on two given shapes.

Parameters:
theShape1First argument for boolean operation.
theShape2Second argument for boolean operation.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

Perform Section boolean operation on two given shapes.

Parameters: 
    theShape1 First argument for boolean operation.
    theShape2 Second argument for boolean operation.
 
Returns:   
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 4976 of file geompyDC.py.

04976 
04977         def MakeSection(self, theShape1, theShape2):
04978             """
04979             Perform Section boolean operation on two given shapes.
04980 
04981             Parameters: 
04982                 theShape1 First argument for boolean operation.
04983                 theShape2 Second argument for boolean operation.
04984  
04985             Returns:   
04986                 New GEOM.GEOM_Object, containing the result shape.
04987             
04988             """
04989             # Example: see GEOM_TestOthers.py
04990             return self.MakeBoolean(theShape1, theShape2, 4)

Here is the call graph for this function: