1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0030151: Modeling Algorithms - Removal of the API level of old Boolean operations algorithm (BRepAlgo_BooleanOperation)

The following classes have been removed as obsolete:
- BRepAlgo_BooleanOperation
- BRepAlgo_Fuse
- BRepAlgo_Cut
- BRepAlgo_Common
- BRepAlgo_Section

The corresponding classes from BRepAlgoAPI package have to be used instead.

Draw commands:
- fuse
- cut
- common
- section/psection
have also been removed as obsolete.

The corresponding commands for modern Boolean operations algorithm (bfuse/bcut/bcommon/bsection) have to be used instead.

Adjustment of the test cases to use the commands for modern algorithm.
This commit is contained in:
emv
2018-09-21 11:43:16 +03:00
committed by smoskvin
parent 35ad04e78b
commit efac173377
41 changed files with 185 additions and 2591 deletions

View File

@@ -26,12 +26,10 @@
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopExp_Explorer.hxx>
#include <TopOpeBRepBuild_HBuilder.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <BRepAlgo_Cut.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgo.hxx>
#include <TDF_Data.hxx>
@@ -305,7 +303,7 @@ void Sample()
ToolSelector.Select(Tool, Tool);
const TopoDS_Shape& TOOL = ToolSelector.NamedShape()->Get();
BRepAlgo_Cut mkCUT (OBJECT, TOOL);
BRepAlgoAPI_Cut mkCUT (OBJECT, TOOL);
if (!mkCUT.IsDone()) {
std::cout << "CUT: Algorithm failed" << std::endl;
@@ -365,8 +363,7 @@ void Sample()
// push in the DF section edges
TNaming_Builder IntersBuilder(Intersections);
Handle(TopOpeBRepBuild_HBuilder) build = mkCUT.Builder();
TopTools_ListIteratorOfListOfShape its = build->Section();
TopTools_ListIteratorOfListOfShape its(mkCUT.SectionEdges());
for (; its.More(); its.Next()) {
// TNaming_Evolution == SELECTED
IntersBuilder.Select(its.Value(),its.Value());