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

Provides a basic tool to implement local
topological operations.

#include <LocOpe_Builder.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC LocOpe_Builder ()
 Empty constructor.

 LocOpe_Builder (const TopoDS_Shape &S)
 Creates a builder for local operations on <S>.

 LocOpe_Builder (const TopoDS_Shape &S, const TopoDS_Shape &Tool)
 Creates a builder for local operations between <S>
and <Tool>.

void Init (const TopoDS_Shape &S)
 Initializes a builder for local operations on <S>.

void Init (const TopoDS_Shape &S, const TopoDS_Shape &Tool)
 Initializes a builder for local operations between
<S> and <Tool>.

void Perform (const TopoDS_Shape &Tool, const TopTools_ListOfShape &L, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape. <L> defines a set of faces of the
shape. The whole tool is used. The list may not be
empty. The boolean <Fuse> gives the type of
operation. If set to Standard_True, the operation
is a fusion. If set to Standard_False, the
operation is a cutting one.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.

void Perform (const TopTools_ListOfShape &LShape, const TopTools_ListOfShape &LTool, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape and tool. <LShape> defines a set of faces
of the shape. <LTool> defines a set of faces of
the tool. The boolean <Fuse> gives the type of
operation. If set to Standard_True, the operation
is a fusion. If set to Standard_False, the
operation is a cutting one. If <LShape> (resp.
<LTool>) is empty, the whole shape (resp. tool) is
used.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.

void BuildPartsOfTool ()
 Builds every valid parts of the tool.

const TopTools_ListOfShapePartsOfTool () const
 Returns the list of the parts of tool. Each of
this part is a TopoDS_Shell.

void RemovePart (const TopoDS_Shape &S)
 Removes <S> from the list of valid parts of tool.

void ActivatePart (const TopoDS_Shape &S)
 Removes <S> from the list of invalid parts of
tool. By default, all parts of tool are valid for
the local operation.

void PerformResult ()
 Invalidates the given parts of tools if any, and
performs the result of the local operation.

Standard_Boolean IsDone () const
 Returns Standard_True if the operation has been
successfuly done.

Standard_Boolean IsInvDone () const
 Returns Standard_True if the Invalidate Parts
operation has been successfuly done.

const TopoDS_ShapeResultingShape () const
 Returns the result of the operation.

const TopoDS_ShapeOriginalShape () const
 Returns the shape on which the operation is defined.

const TopoDS_ShapeTool () const
 Returns the "tool" used to perform the local operation.

const Handle_BOP_HistoryCollector & History () const
void InvalidateParts ()
const TopTools_ListOfShapeEdges () const
const TopTools_ListOfShapeTgtEdges () const

Constructor & Destructor Documentation


Member Function Documentation

const Handle_BOP_HistoryCollector& LocOpe_Builder::History ( ) const

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