Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
BRepAlgoAPI_BooleanOperation Class Reference

The abstract class BooleanOperation is the root
class of Boolean Operations (see Overview).
Boolean Operations algorithm is divided onto two parts.
More...

#include <BRepAlgoAPI_BooleanOperation.hxx>

Inheritance diagram for BRepAlgoAPI_BooleanOperation:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC void SetOperation (const BOP_Operation anOp)
 Sets the type of Boolean operation to perform
It can be BOP_SECTION
BOP_COMMON
BOP_FUSE
BOP_CUT
BOP_CUT21


virtual void Build ()
 Provides the algorithm of Boolean Operations

const TopoDS_ShapeShape1 () const
 Returns the first shape involved in this Boolean operation.

const TopoDS_ShapeShape2 () const
 Returns the second shape involved in this Boolean operation.

BOP_Operation Operation () const
 Returns the type of Boolean Operation that has been performed.

Standard_Boolean FuseEdges () const
 Returns the flag of edge refining

void RefineEdges ()
 Fuse C1 edges

Standard_Boolean BuilderCanWork () const
Standard_Integer ErrorStatus () const
 Returns the error status of operation.
0 - Ok
1 - The Object is created but Nothing is Done
2 - Null source shapes is not allowed
3 - Check types of the arguments
4 - Can not allocate memory for the DSFiller
5 - The Builder can not work with such types of arguments
6 - Unknown operation is not allowed
7 - Can not allocate memory for the Builder

100 - See the Builder's ErrorStatus


virtual const
TopTools_ListOfShape
Modified (const TopoDS_Shape &aS)
 Returns the list of shapes modified from the shape <S>.

virtual Standard_Boolean IsDeleted (const TopoDS_Shape &aS)
 Returns true if the shape S has been deleted. The
result shape of the operation does not contain the shape S.

virtual const
TopTools_ListOfShape
Modified2 (const TopoDS_Shape &aS)
 Returns the list of shapes modified from the shape <S>.
For use in BRepNaming.

virtual const
TopTools_ListOfShape
Generated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape <S>.
For use in BRepNaming.

virtual Standard_Boolean HasModified () const
 Returns true if there is at least one modified shape.
For use in BRepNaming.

virtual Standard_Boolean HasGenerated () const
 Returns true if there is at least one generated shape.
For use in BRepNaming.

virtual Standard_Boolean HasDeleted () const
 Returns true if there is at least one deleted shape.
For use in BRepNaming.

void Destroy ()
virtual ~BRepAlgoAPI_BooleanOperation ()
const TopTools_ListOfShapeSectionEdges ()
 Returns a list of section edges.
The edges represent the result of intersection between arguments of
Boolean Operation. They are computed during operation execution.

Protected Member Functions

 BRepAlgoAPI_BooleanOperation (const TopoDS_Shape &S1, const TopoDS_Shape &S2, const BOP_Operation anOperation)
 Prepares the operations for S1 and S2.

 BRepAlgoAPI_BooleanOperation (const TopoDS_Shape &S1, const TopoDS_Shape &S2, const BOPTools_DSFiller &aDSF, const BOP_Operation anOperation)
 Prepares the operations for S1 and S2.

Standard_Boolean PrepareFiller ()

Protected Attributes

TopoDS_Shape myS1
TopoDS_Shape myS2
Standard_Boolean myBuilderCanWork
BOP_Operation myOperation
Standard_Integer myErrorStatus
BOPTools_PDSFiller myDSFiller
BOP_PBuilder myBuilder
Handle_BOP_HistoryCollector myHistory

Detailed Description


Constructor & Destructor Documentation


Member Function Documentation

  • Filling interference Data Structure (if it is necessary)
  • Building the result of the operation.

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in BRepAlgoAPI_Section, and QANewModTopOpe_Glue.

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in QANewModTopOpe_Glue, and QANewModTopOpe_Intersection.

Reimplemented in QANewModTopOpe_Glue.

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in QANewModTopOpe_Glue, and QANewModTopOpe_Intersection.

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in QANewModTopOpe_Glue.


Field Documentation

Handle_BOP_HistoryCollector BRepAlgoAPI_BooleanOperation::myHistory [protected]

The documentation for this class was generated from the following file: