mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
1. The possibility to prevent addition of internal parts has been added into the following algorithms: - BOPAlgo_BuilderFace; - BOPAlgo_BuilderSolid; - BOPAlgo_MakerVolume. Setting the option to avoid internal parts for MakerVolume algorithm guarantees that the result solids will be manifold and not contain any internal parts. But it does not prevent from occurrence of the internal edges or vertices in the faces. 2. The Set/Get methods of the BOPAlgo_BuilderArea class have been made inline. 3. Draw command mkvolume has been updated to take into account the new option. 4. BRepOffset_MakeOffset::BuildShellsCompleteInter() has been modified to use the new option of BOPAlgo_MakerVolume to speed up the construction of the final result solid. 5. Documentation has been updated with new section dedicated to BOPAlgo_MakerVolume algorithm. 6. Test case for the issue.
59 lines
2.0 KiB
C++
59 lines
2.0 KiB
C++
// Created by: Peter KURNEV
|
|
// Copyright (c) 2010-2014 OPEN CASCADE SAS
|
|
// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
|
|
// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
//
|
|
// 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.
|
|
|
|
|
|
#include <BOPAlgo_BuilderArea.hxx>
|
|
|
|
//=======================================================================
|
|
//function :
|
|
//purpose :
|
|
//=======================================================================
|
|
BOPAlgo_BuilderArea::BOPAlgo_BuilderArea()
|
|
:
|
|
BOPAlgo_Algo(),
|
|
myShapes(myAllocator),
|
|
myLoops(myAllocator),
|
|
myLoopsInternal(myAllocator),
|
|
myAreas(myAllocator),
|
|
myShapesToAvoid(100, myAllocator),
|
|
myAvoidInternalShapes(Standard_False)
|
|
{
|
|
}
|
|
//=======================================================================
|
|
//function :
|
|
//purpose :
|
|
//=======================================================================
|
|
BOPAlgo_BuilderArea::BOPAlgo_BuilderArea
|
|
(const Handle(NCollection_BaseAllocator)& theAllocator)
|
|
:
|
|
BOPAlgo_Algo(theAllocator),
|
|
myShapes(myAllocator),
|
|
myLoops(myAllocator),
|
|
myLoopsInternal(myAllocator),
|
|
myAreas(myAllocator),
|
|
myShapesToAvoid(100, myAllocator),
|
|
myAvoidInternalShapes(Standard_False)
|
|
{
|
|
}
|
|
//=======================================================================
|
|
//function : ~
|
|
//purpose :
|
|
//=======================================================================
|
|
BOPAlgo_BuilderArea::~BOPAlgo_BuilderArea()
|
|
{
|
|
}
|