summaryrefslogtreecommitdiff
path: root/inc/BRepOffset_Inter3d.hxx
blob: 8bb881b988e4c34e567ccfe6ec807cbd3b7459a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _BRepOffset_Inter3d_HeaderFile
#define _BRepOffset_Inter3d_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Handle_BRepAlgo_AsDes_HeaderFile
#include <Handle_BRepAlgo_AsDes.hxx>
#endif
#ifndef _TopTools_MapOfShape_HeaderFile
#include <TopTools_MapOfShape.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#endif
#ifndef _TopAbs_State_HeaderFile
#include <TopAbs_State.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class BRepAlgo_AsDes;
class TopTools_ListOfShape;
class BRepAlgo_Image;
class TopoDS_Face;
class TopoDS_Shape;
class BRepOffset_Analyse;
class BRepOffset_DataMapOfShapeOffset;
class TopTools_DataMapOfShapeShape;
class TopTools_MapOfShape;


//! Computes the intersection face face in a set of faces <br>
//!          Store the result in a SD as AsDes. <br>
class BRepOffset_Inter3d  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   BRepOffset_Inter3d(const Handle(BRepAlgo_AsDes)& AsDes,const TopAbs_State Side,const Standard_Real Tol);
  
  Standard_EXPORT     void CompletInt(const TopTools_ListOfShape& SetOfFaces,const BRepAlgo_Image& InitOffsetFace) ;
  
  Standard_EXPORT     void FaceInter(const TopoDS_Face& F1,const TopoDS_Face& F2,const BRepAlgo_Image& InitOffsetFace) ;
  
  Standard_EXPORT     void ConnexIntByArc(const TopTools_ListOfShape& SetOfFaces,const TopoDS_Shape& ShapeInit,const BRepOffset_Analyse& Analyse,const BRepAlgo_Image& InitOffsetFace) ;
  
  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) ;
  
  Standard_EXPORT     void ContextIntByInt(const TopTools_MapOfShape& ContextFaces,const Standard_Boolean ExtentContext,const BRepOffset_DataMapOfShapeOffset& MapSF,const BRepOffset_Analyse& A,TopTools_DataMapOfShapeShape& MES,TopTools_DataMapOfShapeShape& Build,TopTools_ListOfShape& Failed) ;
  
  Standard_EXPORT     void ContextIntByArc(const TopTools_MapOfShape& ContextFaces,const Standard_Boolean ExtentContext,const BRepOffset_Analyse& Analyse,const BRepAlgo_Image& InitOffsetFace,BRepAlgo_Image& InitOffsetEdge) ;
  
  Standard_EXPORT     void AddCommonEdges(const TopTools_ListOfShape& SetOfFaces) ;
  
  Standard_EXPORT     void SetDone(const TopoDS_Face& F1,const TopoDS_Face& F2) ;
  
  Standard_EXPORT     Standard_Boolean IsDone(const TopoDS_Face& F1,const TopoDS_Face& F2) const;
  
  Standard_EXPORT     TopTools_MapOfShape& TouchedFaces() ;
  
  Standard_EXPORT     Handle_BRepAlgo_AsDes AsDes() const;
  
  Standard_EXPORT     TopTools_MapOfShape& NewEdges() ;





protected:





private:

  
  Standard_EXPORT     void Store(const TopoDS_Face& F1,const TopoDS_Face& F2,const TopTools_ListOfShape& LInt1,const TopTools_ListOfShape& LInt2) ;


Handle_BRepAlgo_AsDes myAsDes;
TopTools_MapOfShape myTouched;
TopTools_DataMapOfShapeListOfShape myDone;
TopTools_MapOfShape myNewEdges;
TopAbs_State mySide;
Standard_Real myTol;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif