1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00
occt/src/BOPTest/BOPTest_Objects.hxx
emv 948fe6ca88 0028747: Incorrect result of the section operation after edge refinement
Implementation of the method for simplification of the result of Boolean Operation on the API level.
The method BRepAlgoAPI_BuilderAlgo::SimplifyResult has been added, so the derived classes such as BooleanOpeation and Splitter can also use this method.
The result shape simplification should be called after the operation is done. The simplification is performed by the means of ShapeUpgrade_UnifySameDomain algorithm.

Draw command "bsimplify" has been added to control the simplification options.
Documentation for new functionality and draw commands controlling the options of Boolean operations.
Test cases for the new functionality.

Side-effect change:
The algorithms in Boolean component have been changed to use the BRepTools_History as a History tool.
Now it became possible to disable the collection of shapes modifications during Boolean Operations, which may be useful for performance sake (in draw the option is controlled by *setfillhistory* command).
Draw command "unifysamedom" has been changed to accept the angular tolerance in degrees instead of radians.
2018-06-14 14:03:06 +03:00

116 lines
3.3 KiB
C++

// Created by: Peter KURNEV
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _BOPTest_Objects_HeaderFile
#define _BOPTest_Objects_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <BOPDS_PDS.hxx>
#include <TopTools_ListOfShape.hxx>
#include <BOPAlgo_PBuilder.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <BOPAlgo_CellsBuilder.hxx>
#include <BOPAlgo_GlueEnum.hxx>
//
class BOPAlgo_PaveFiller;
class BOPAlgo_Builder;
class BOPAlgo_BOP;
class BOPAlgo_Section;
class BOPAlgo_Splitter;
class BOPTest_Objects
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT static BOPAlgo_PaveFiller& PaveFiller();
Standard_EXPORT static void Init();
Standard_EXPORT static void Clear();
Standard_EXPORT static BOPDS_PDS PDS();
Standard_EXPORT static BOPAlgo_Builder& Builder();
Standard_EXPORT static BOPAlgo_BOP& BOP();
Standard_EXPORT static BOPAlgo_Section& Section();
Standard_EXPORT static BOPAlgo_CellsBuilder& CellsBuilder();
Standard_EXPORT static BOPAlgo_Splitter& Splitter();
Standard_EXPORT static TopTools_ListOfShape& Shapes();
Standard_EXPORT static TopTools_ListOfShape& Tools();
Standard_EXPORT static void SetBuilder (const BOPAlgo_PBuilder& theBuilder);
Standard_EXPORT static void SetBuilderDefault();
Standard_EXPORT static void SetDefaultOptions();
Standard_EXPORT static void SetRunParallel (const Standard_Boolean theFlag);
Standard_EXPORT static Standard_Boolean RunParallel();
Standard_EXPORT static void SetFuzzyValue (const Standard_Real theValue);
Standard_EXPORT static Standard_Real FuzzyValue();
Standard_EXPORT static void SetNonDestructive(const Standard_Boolean theFlag);
Standard_EXPORT static Standard_Boolean NonDestructive();
Standard_EXPORT static void SetGlue(const BOPAlgo_GlueEnum aGlue);
Standard_EXPORT static BOPAlgo_GlueEnum Glue();
Standard_EXPORT static void SetDrawWarnShapes(const Standard_Boolean bDraw);
Standard_EXPORT static Standard_Boolean DrawWarnShapes();
Standard_EXPORT static void SetCheckInverted(const Standard_Boolean bCheck);
Standard_EXPORT static Standard_Boolean CheckInverted();
Standard_EXPORT static void SetUseOBB(const Standard_Boolean bUseOBB);
Standard_EXPORT static Standard_Boolean UseOBB();
Standard_EXPORT static void SetUnifyEdges(const Standard_Boolean bUE);
Standard_EXPORT static Standard_Boolean UnifyEdges();
Standard_EXPORT static void SetUnifyFaces(const Standard_Boolean bUF);
Standard_EXPORT static Standard_Boolean UnifyFaces();
Standard_EXPORT static void SetAngular(const Standard_Real bAngTol);
Standard_EXPORT static Standard_Real Angular();
protected:
private:
};
#endif // _BOPTest_Objects_HeaderFile