mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-15 11:44:07 +03:00
The Gluing operation is an additional option for the algorithms in the Boolean Component such as General Fuse, Boolean operations, Section operation, Maker Volume and Cells Builder algorithms. The Gluing options have been designed to speed up the computation of the interference among arguments of the operations on special cases, in which the arguments may be overlapping but do not have real intersections between their sub-shapes. This option cannot be used on the shapes having real intersections, like intersection vertex between edges, or intersection vertex between edge and a face or intersection line between faces. The Gluing option is an enumeration implemented in BOPAlgo_GlueEnum.hxx. There are following items in the enum: * BOPAlgo_GlueOff - default value for the algorithms, Gluing is switched off; * BOPAlgo_GlueShift - Glue option for shapes with partial coincidence; * BOPAlgo_GlueFull - Glue option for shapes with full coincidence. For setting the Gluing options for the algorithm it is just necessary to call the SetGlue(BOPAlgo_GlueEnum) method with appropriate Glue value. For using this option in DRAW the command bglue has been implemented: * 0 - default value, Gluing is off; * 1 - for partial coincidence; * 2 - for full coincidence Elimination of the warnings.
106 lines
2.4 KiB
C++
106 lines
2.4 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 <BOPCol_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 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 BOPCol_ListOfShape& Shapes();
|
|
|
|
Standard_EXPORT static BOPCol_ListOfShape& Tools();
|
|
|
|
Standard_EXPORT static void SetBuilder (const BOPAlgo_PBuilder& theBuilder);
|
|
|
|
Standard_EXPORT static void SetBuilderDefault();
|
|
|
|
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();
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _BOPTest_Objects_HeaderFile
|