Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Boolean Operations
Transforming geometrical objects

Functions

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

Detailed Description

Function Documentation

def geompy.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

References geompy.RaiseIfFailed().

def geompy.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

def geompy.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

def geompy.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

def geompy.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

References geompy.MakePartition().

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS