Open CASCADE Technology
6.5.4
|
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 <ool, 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_ListOfShape & | PartsOfTool () 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_Shape & | ResultingShape () const |
Returns the result of the operation. | |
const TopoDS_Shape & | OriginalShape () const |
Returns the shape on which the operation is defined. | |
const TopoDS_Shape & | Tool () const |
Returns the "tool" used to perform the local operation. | |
const Handle_BOP_HistoryCollector & | History () const |
void | InvalidateParts () |
const TopTools_ListOfShape & | Edges () const |
const TopTools_ListOfShape & | TgtEdges () const |
LocOpe_Builder::LocOpe_Builder | ( | const TopoDS_Shape & | S, |
const TopoDS_Shape & | Tool | ||
) |
const TopTools_ListOfShape& LocOpe_Builder::Edges | ( | ) | const |
const Handle_BOP_HistoryCollector& LocOpe_Builder::History | ( | ) | const |
void LocOpe_Builder::Init | ( | const TopoDS_Shape & | S, |
const TopoDS_Shape & | Tool | ||
) |
Standard_Boolean LocOpe_Builder::IsDone | ( | ) | const |
Standard_Boolean LocOpe_Builder::IsInvDone | ( | ) | const |
const TopoDS_Shape& LocOpe_Builder::OriginalShape | ( | ) | const |
const TopTools_ListOfShape& LocOpe_Builder::PartsOfTool | ( | ) | const |
void LocOpe_Builder::Perform | ( | const TopoDS_Shape & | Tool, |
const TopTools_ListOfShape & | L, | ||
const Standard_Boolean | Fuse | ||
) |
void LocOpe_Builder::Perform | ( | const TopTools_ListOfShape & | LShape, |
const TopTools_ListOfShape & | LTool, | ||
const Standard_Boolean | Fuse | ||
) |
const TopoDS_Shape& LocOpe_Builder::ResultingShape | ( | ) | const |
const TopTools_ListOfShape& LocOpe_Builder::TgtEdges | ( | ) | const |
const TopoDS_Shape& LocOpe_Builder::Tool | ( | ) | const |