42cf5bc1 |
1 | // Created on: 1996-08-30 |
2 | // Created by: Yves FRICAUD |
3 | // Copyright (c) 1996-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _BRepOffset_Inter3d_HeaderFile |
18 | #define _BRepOffset_Inter3d_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TopTools_IndexedMapOfShape.hxx> |
25 | #include <TopTools_DataMapOfShapeListOfShape.hxx> |
26 | #include <TopAbs_State.hxx> |
27 | #include <Standard_Real.hxx> |
28 | #include <TopTools_ListOfShape.hxx> |
29 | #include <BRepOffset_DataMapOfShapeOffset.hxx> |
30 | #include <TopTools_DataMapOfShapeShape.hxx> |
31 | #include <Standard_Boolean.hxx> |
32 | class BRepAlgo_AsDes; |
33 | class BRepAlgo_Image; |
34 | class TopoDS_Face; |
35 | class TopoDS_Shape; |
36 | class BRepOffset_Analyse; |
37 | |
38 | |
39 | //! Computes the intersection face face in a set of faces |
40 | //! Store the result in a SD as AsDes. |
41 | class BRepOffset_Inter3d |
42 | { |
43 | public: |
44 | |
45 | DEFINE_STANDARD_ALLOC |
46 | |
47 | |
48 | Standard_EXPORT BRepOffset_Inter3d(const Handle(BRepAlgo_AsDes)& AsDes, const TopAbs_State Side, const Standard_Real Tol); |
49 | |
50 | Standard_EXPORT void CompletInt (const TopTools_ListOfShape& SetOfFaces, const BRepAlgo_Image& InitOffsetFace); |
51 | |
52 | Standard_EXPORT void FaceInter (const TopoDS_Face& F1, const TopoDS_Face& F2, const BRepAlgo_Image& InitOffsetFace); |
53 | |
54 | Standard_EXPORT void ConnexIntByArc (const TopTools_ListOfShape& SetOfFaces, const TopoDS_Shape& ShapeInit, const BRepOffset_Analyse& Analyse, const BRepAlgo_Image& InitOffsetFace); |
55 | |
9b7f3f83 |
56 | Standard_EXPORT void ConnexIntByInt (const TopoDS_Shape& SI, const BRepOffset_DataMapOfShapeOffset& MapSF, const BRepOffset_Analyse& A, TopTools_DataMapOfShapeShape& MES, TopTools_DataMapOfShapeShape& Build, TopTools_ListOfShape& Failed, const Standard_Boolean bIsPlanar = Standard_False); |
42cf5bc1 |
57 | |
9b7f3f83 |
58 | Standard_EXPORT void ContextIntByInt (const TopTools_IndexedMapOfShape& ContextFaces, const Standard_Boolean ExtentContext, const BRepOffset_DataMapOfShapeOffset& MapSF, const BRepOffset_Analyse& A, TopTools_DataMapOfShapeShape& MES, TopTools_DataMapOfShapeShape& Build, TopTools_ListOfShape& Failed, const Standard_Boolean bIsPlanar = Standard_False); |
42cf5bc1 |
59 | |
60 | Standard_EXPORT void ContextIntByArc (const TopTools_IndexedMapOfShape& ContextFaces, const Standard_Boolean ExtentContext, const BRepOffset_Analyse& Analyse, const BRepAlgo_Image& InitOffsetFace, BRepAlgo_Image& InitOffsetEdge); |
61 | |
62 | Standard_EXPORT void AddCommonEdges (const TopTools_ListOfShape& SetOfFaces); |
63 | |
64 | Standard_EXPORT void SetDone (const TopoDS_Face& F1, const TopoDS_Face& F2); |
65 | |
66 | Standard_EXPORT Standard_Boolean IsDone (const TopoDS_Face& F1, const TopoDS_Face& F2) const; |
67 | |
68 | Standard_EXPORT TopTools_IndexedMapOfShape& TouchedFaces(); |
69 | |
70 | Standard_EXPORT Handle(BRepAlgo_AsDes) AsDes() const; |
71 | |
72 | Standard_EXPORT TopTools_IndexedMapOfShape& NewEdges(); |
73 | |
74 | |
75 | |
76 | |
77 | protected: |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | private: |
84 | |
85 | |
86 | Standard_EXPORT void Store (const TopoDS_Face& F1, const TopoDS_Face& F2, const TopTools_ListOfShape& LInt1, const TopTools_ListOfShape& LInt2); |
87 | |
88 | |
89 | Handle(BRepAlgo_AsDes) myAsDes; |
90 | TopTools_IndexedMapOfShape myTouched; |
91 | TopTools_DataMapOfShapeListOfShape myDone; |
92 | TopTools_IndexedMapOfShape myNewEdges; |
93 | TopAbs_State mySide; |
94 | Standard_Real myTol; |
95 | |
96 | |
97 | }; |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | #endif // _BRepOffset_Inter3d_HeaderFile |