1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2014 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This file is part of Open CASCADE Technology software library.
9 // This library is free software; you can redistribute it and/or modify it under
10 // the terms of the GNU Lesser General Public License version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
18 #ifndef _BOPAlgo_BuilderFace_HeaderFile
19 #define _BOPAlgo_BuilderFace_HeaderFile
21 #include <Standard.hxx>
22 #include <Standard_DefineAlloc.hxx>
23 #include <Standard_Handle.hxx>
25 #include <TopoDS_Face.hxx>
26 #include <TopAbs_Orientation.hxx>
27 #include <BOPAlgo_BuilderArea.hxx>
28 #include <NCollection_BaseAllocator.hxx>
32 //! The algorithm to build new faces from the given faces and
33 //! set of edges lying on this face.
35 //! The algorithm returns the following Error statuses:
36 //! - *BOPAlgo_AlertNullInputShapes* - in case the given face is a null shape.
38 class BOPAlgo_BuilderFace : public BOPAlgo_BuilderArea
45 Standard_EXPORT BOPAlgo_BuilderFace();
46 Standard_EXPORT virtual ~BOPAlgo_BuilderFace();
48 Standard_EXPORT BOPAlgo_BuilderFace(const Handle(NCollection_BaseAllocator)& theAllocator);
50 //! Sets the face generatix
51 Standard_EXPORT void SetFace (const TopoDS_Face& theFace);
53 //! Returns the face generatix
54 Standard_EXPORT const TopoDS_Face& Face() const;
56 //! Performs the algorithm
57 Standard_EXPORT virtual void Perform() Standard_OVERRIDE;
59 Standard_EXPORT TopAbs_Orientation Orientation() const;
63 //! Collect the edges that
65 //! b) are the same and have different orientation
66 Standard_EXPORT virtual void PerformShapesToAvoid() Standard_OVERRIDE;
69 //! a)myLoops - draft wires that consist of
71 //! b)myLoopsInternal - draft wires that contains
73 Standard_EXPORT virtual void PerformLoops() Standard_OVERRIDE;
75 //! Build draft faces that contains boundary edges
76 Standard_EXPORT virtual void PerformAreas() Standard_OVERRIDE;
78 //! Build finalized faces with internals
79 Standard_EXPORT virtual void PerformInternalShapes() Standard_OVERRIDE;
81 Standard_EXPORT virtual void CheckData() Standard_OVERRIDE;
85 TopAbs_Orientation myOrientation;
102 #endif // _BOPAlgo_BuilderFace_HeaderFile