1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <BRep_Builder.hxx>
17 #include <TopoDS_Edge.hxx>
19 //=======================================================================
20 //function : BOPAlgo_EdgeInfo
22 //=======================================================================
23 class BOPAlgo_EdgeInfo {
27 myPassed(Standard_False),
28 myInFlag(Standard_False),
32 void SetEdge(const TopoDS_Edge& theE) {
36 const TopoDS_Edge& Edge() const{
40 void SetPassed(const Standard_Boolean theFlag) {
44 Standard_Boolean Passed()const {
48 void SetInFlag(const Standard_Boolean theFlag) {
52 Standard_Boolean IsIn()const {
56 void SetAngle(const Standard_Real theAngle) {
60 Standard_Real Angle()const {
66 Standard_Boolean myPassed;
67 Standard_Boolean myInFlag;
68 Standard_Real myAngle;
72 #include <NCollection_List.hxx>
73 typedef NCollection_List<BOPAlgo_EdgeInfo> BOPAlgo_ListOfEdgeInfo;
74 typedef BOPAlgo_ListOfEdgeInfo::Iterator BOPAlgo_ListIteratorOfListOfEdgeInfo;
76 #include <NCollection_IndexedDataMap.hxx>
77 #include <TopTools_ShapeMapHasher.hxx>
79 typedef NCollection_IndexedDataMap<TopoDS_Shape, \
80 BOPAlgo_ListOfEdgeInfo, \
81 TopTools_ShapeMapHasher> BOPAlgo_IndexedDataMapOfShapeListOfEdgeInfo;
83 //=======================================================================
86 //=======================================================================
87 inline void BOPAlgo_WireSplitter::MakeWire(BOPCol_ListOfShape& aLE,
93 BOPCol_ListIteratorOfListOfShape aIt(aLE);
94 for (; aIt.More(); aIt.Next()){
95 aBB.Add(aWire, aIt.Value());