blob: 5b5177390ced4974f18ddcbef204908b7c23855e (
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
// 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 _BRepFill_Draft_HeaderFile
#define _BRepFill_Draft_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _gp_Dir_HeaderFile
#include <gp_Dir.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_BRepFill_DraftLaw_HeaderFile
#include <Handle_BRepFill_DraftLaw.hxx>
#endif
#ifndef _Handle_BRepFill_SectionLaw_HeaderFile
#include <Handle_BRepFill_SectionLaw.hxx>
#endif
#ifndef _Handle_TopTools_HArray2OfShape_HeaderFile
#include <Handle_TopTools_HArray2OfShape.hxx>
#endif
#ifndef _TopTools_ListOfShape_HeaderFile
#include <TopTools_ListOfShape.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _TopoDS_Shell_HeaderFile
#include <TopoDS_Shell.hxx>
#endif
#ifndef _TopoDS_Wire_HeaderFile
#include <TopoDS_Wire.hxx>
#endif
#ifndef _GeomAbs_Shape_HeaderFile
#include <GeomAbs_Shape.hxx>
#endif
#ifndef _BRepFill_TransitionStyle_HeaderFile
#include <BRepFill_TransitionStyle.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
class BRepFill_DraftLaw;
class BRepFill_SectionLaw;
class TopTools_HArray2OfShape;
class StdFail_NotDone;
class TopoDS_Shape;
class gp_Dir;
class Geom_Surface;
class TopoDS_Shell;
class TopTools_ListOfShape;
class Bnd_Box;
class BRepFill_Draft {
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 BRepFill_Draft(const TopoDS_Shape& Shape,const gp_Dir& Dir,const Standard_Real Angle);
Standard_EXPORT void SetOptions(const BRepFill_TransitionStyle Style = BRepFill_Right,const Standard_Real AngleMin = 0.01,const Standard_Real AngleMax = 3.0) ;
Standard_EXPORT void SetDraft(const Standard_Boolean IsInternal = Standard_False) ;
Standard_EXPORT void Perform(const Standard_Real LengthMax) ;
Standard_EXPORT void Perform(const Handle(Geom_Surface)& Surface,const Standard_Boolean KeepInsideSurface = Standard_True) ;
Standard_EXPORT void Perform(const TopoDS_Shape& StopShape,const Standard_Boolean KeepOutSide = Standard_True) ;
Standard_EXPORT Standard_Boolean IsDone() const;
//! Returns the draft surface <br>
//! To have the complete shape <br>
//! you have to use the Shape() methode. <br>
Standard_EXPORT TopoDS_Shell Shell() const;
//! Returns the list of shapes generated from the <br>
//! shape <S>. <br>
Standard_EXPORT const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
Standard_EXPORT TopoDS_Shape Shape() const;
protected:
private:
Standard_EXPORT void Init(const Handle(Geom_Surface)& Surf,const Standard_Real Length,const Bnd_Box& Box) ;
Standard_EXPORT void BuildShell(const Handle(Geom_Surface)& Surf,const Standard_Boolean KeepOutSide = Standard_False) ;
Standard_EXPORT Standard_Boolean Fuse(const TopoDS_Shape& S,const Standard_Boolean KeepOutSide) ;
Standard_EXPORT Standard_Boolean Sewing() ;
gp_Dir myDir;
Standard_Real myAngle;
Standard_Real angmin;
Standard_Real angmax;
Standard_Real myTol;
Handle_BRepFill_DraftLaw myLoc;
Handle_BRepFill_SectionLaw mySec;
Handle_TopTools_HArray2OfShape mySections;
Handle_TopTools_HArray2OfShape myFaces;
TopTools_ListOfShape myGenerated;
TopoDS_Shape myShape;
TopoDS_Shape myTop;
TopoDS_Shell myShell;
TopoDS_Wire myWire;
GeomAbs_Shape myCont;
BRepFill_TransitionStyle myStyle;
Standard_Boolean IsInternal;
Standard_Boolean myDone;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|