summaryrefslogtreecommitdiff
path: root/inc/BRepOffset_Offset.hxx
blob: 4b67c31efd8f63bb0235087130f741965b05de02 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// 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_Offset_HeaderFile
#define _BRepOffset_Offset_HeaderFile

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

#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _BRepOffset_Status_HeaderFile
#include <BRepOffset_Status.hxx>
#endif
#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeShape_HeaderFile
#include <TopTools_DataMapOfShapeShape.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _GeomAbs_JoinType_HeaderFile
#include <GeomAbs_JoinType.hxx>
#endif
#ifndef _GeomAbs_Shape_HeaderFile
#include <GeomAbs_Shape.hxx>
#endif
class TopoDS_Face;
class TopTools_DataMapOfShapeShape;
class TopoDS_Edge;
class TopoDS_Vertex;
class TopTools_ListOfShape;
class TopoDS_Shape;


//! class for the creation of Offseting. <br>
class BRepOffset_Offset  {
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_Offset();
  
  Standard_EXPORT   BRepOffset_Offset(const TopoDS_Face& Face,const Standard_Real Offset,const Standard_Boolean OffsetOutside = Standard_True,const GeomAbs_JoinType JoinType = GeomAbs_Arc);
  //! This method will be  called when you want to share <br>
//!          the  edges  soon generated  from  an other  face. <br>
//!          e.g. when two faces are  tangents the common  edge <br>
//!          will generate only one edge ( no pipe). <br>
//! <br>
//!          The Map  will be fill  as  follow: <br>
//! <br>
//!          Created(E) = E' <br>
//!          with: E  = an edge of <Face> <br>
//!                E' = the image of E in the offseting  of <br>
//!                     another  face  sharing E  with a <br>
//!                     continuity at least G1 <br>
//! <br>
  Standard_EXPORT   BRepOffset_Offset(const TopoDS_Face& Face,const Standard_Real Offset,const TopTools_DataMapOfShapeShape& Created,const Standard_Boolean OffsetOutside = Standard_True,const GeomAbs_JoinType JoinType = GeomAbs_Arc);
  
  Standard_EXPORT   BRepOffset_Offset(const TopoDS_Edge& Path,const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,const Standard_Real Offset,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1);
  
  Standard_EXPORT   BRepOffset_Offset(const TopoDS_Edge& Path,const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,const Standard_Real Offset,const TopoDS_Edge& FirstEdge,const TopoDS_Edge& LastEdge,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1);
  //! Tol and Conti are only used if Polynomial is True <br>
//!          (Used to perfrom the approximation) <br>
  Standard_EXPORT   BRepOffset_Offset(const TopoDS_Vertex& Vertex,const TopTools_ListOfShape& LEdge,const Standard_Real Offset,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1);
  
  Standard_EXPORT     void Init(const TopoDS_Face& Face,const Standard_Real Offset,const Standard_Boolean OffsetOutside = Standard_True,const GeomAbs_JoinType JoinType = GeomAbs_Arc) ;
  
  Standard_EXPORT     void Init(const TopoDS_Face& Face,const Standard_Real Offset,const TopTools_DataMapOfShapeShape& Created,const Standard_Boolean OffsetOutside = Standard_True,const GeomAbs_JoinType JoinType = GeomAbs_Arc) ;
  
  Standard_EXPORT     void Init(const TopoDS_Edge& Path,const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,const Standard_Real Offset,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1) ;
  
  Standard_EXPORT     void Init(const TopoDS_Edge& Path,const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,const Standard_Real Offset,const TopoDS_Edge& FirstEdge,const TopoDS_Edge& LastEdge,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1) ;
  //! Tol and Conti are only used if Polynomial is True <br>
//!          (Used to perfrom the approximation) <br>
  Standard_EXPORT     void Init(const TopoDS_Vertex& Vertex,const TopTools_ListOfShape& LEdge,const Standard_Real Offset,const Standard_Boolean Polynomial = Standard_False,const Standard_Real Tol = 1.0e-4,const GeomAbs_Shape Conti = GeomAbs_C1) ;
  //! Only used in Rolling Ball. Pipe on Free Boundary <br>
  Standard_EXPORT     void Init(const TopoDS_Edge& Edge,const Standard_Real Offset) ;
  
       const TopoDS_Shape& InitialShape() const;
  
  Standard_EXPORT    const TopoDS_Face& Face() const;
  
  Standard_EXPORT     TopoDS_Shape Generated(const TopoDS_Shape& Shape) const;
  
  Standard_EXPORT     BRepOffset_Status Status() const;





protected:





private:



TopoDS_Shape myShape;
BRepOffset_Status myStatus;
TopoDS_Face myFace;
TopTools_DataMapOfShapeShape myMap;


};


#include <BRepOffset_Offset.lxx>



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


#endif