42cf5bc1 |
1 | // Created on: 1994-03-03 |
2 | // Created by: Joelle CHAUVET |
3 | // Copyright (c) 1994-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 _BRepFill_HeaderFile |
18 | #define _BRepFill_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <TColStd_Array1OfReal.hxx> |
27 | class TopoDS_Face; |
28 | class TopoDS_Edge; |
29 | class TopoDS_Shell; |
30 | class TopoDS_Wire; |
31 | class TopoDS_Shape; |
32 | class gp_Ax3; |
33 | class gp_Pnt; |
34 | class gp_Vec; |
35 | class BRepFill_Generator; |
36 | class BRepFill_SectionLaw; |
37 | class BRepFill_ShapeLaw; |
38 | class BRepFill_NSections; |
39 | class BRepFill_Draft; |
40 | class BRepFill_LocationLaw; |
41 | class BRepFill_DraftLaw; |
42 | class BRepFill_Edge3DLaw; |
43 | class BRepFill_EdgeOnSurfLaw; |
44 | class BRepFill_ACRLaw; |
45 | class BRepFill_Pipe; |
46 | class BRepFill_PipeShell; |
47 | class BRepFill_Evolved; |
48 | class BRepFill_Sweep; |
49 | class BRepFill_CompatibleWires; |
50 | class BRepFill_OffsetWire; |
51 | class BRepFill_OffsetAncestors; |
52 | class BRepFill_ApproxSeewing; |
53 | class BRepFill_ComputeCLine; |
54 | class BRepFill_TrimSurfaceTool; |
55 | class BRepFill_TrimEdgeTool; |
56 | class BRepFill_SectionPlacement; |
57 | class BRepFill_Section; |
58 | class BRepFill_TrimShellCorner; |
59 | class BRepFill_CurveConstraint; |
60 | class BRepFill_Filling; |
61 | class BRepFill_FaceAndOrder; |
62 | class BRepFill_EdgeFaceAndOrder; |
63 | |
64 | |
65 | |
66 | class BRepFill |
67 | { |
68 | public: |
69 | |
70 | DEFINE_STANDARD_ALLOC |
71 | |
72 | |
73 | //! Computes a ruled surface between two edges. |
74 | Standard_EXPORT static TopoDS_Face Face (const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2); |
75 | |
76 | //! Computes a ruled surface between two wires. |
77 | //! The wires must have the same number of edges. |
78 | Standard_EXPORT static TopoDS_Shell Shell (const TopoDS_Wire& Wire1, const TopoDS_Wire& Wire2); |
79 | |
80 | //! Computes <AxeProf> as Follow. <Location> is |
81 | //! the Position of the nearest vertex V of <Profile> |
82 | //! to <Spine>.<XDirection> is confused with the tangent |
83 | //! to <Spine> at the projected point of V on the Spine. |
84 | //! <Direction> is normal to <Spine>. |
85 | //! <Spine> is a plane wire or a plane face. |
86 | Standard_EXPORT static void Axe (const TopoDS_Shape& Spine, const TopoDS_Wire& Profile, gp_Ax3& AxeProf, Standard_Boolean& ProfOnSpine, const Standard_Real Tol); |
87 | |
88 | //! Compute ACR on a wire |
89 | Standard_EXPORT static void ComputeACR (const TopoDS_Wire& wire, TColStd_Array1OfReal& ACR); |
90 | |
91 | //! Insert ACR on a wire |
92 | Standard_EXPORT static TopoDS_Wire InsertACR (const TopoDS_Wire& wire, const TColStd_Array1OfReal& ACRcuts, const Standard_Real prec); |
93 | |
94 | |
95 | |
96 | |
97 | protected: |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | private: |
104 | |
105 | |
106 | //! Computes origins and orientation on a closed wire |
107 | Standard_EXPORT static void SearchOrigin (TopoDS_Wire& W, const gp_Pnt& P, const gp_Vec& V, const Standard_Real Tol); |
108 | |
109 | |
110 | |
111 | friend class BRepFill_Generator; |
112 | friend class BRepFill_SectionLaw; |
113 | friend class BRepFill_ShapeLaw; |
114 | friend class BRepFill_NSections; |
115 | friend class BRepFill_Draft; |
116 | friend class BRepFill_LocationLaw; |
117 | friend class BRepFill_DraftLaw; |
118 | friend class BRepFill_Edge3DLaw; |
119 | friend class BRepFill_EdgeOnSurfLaw; |
120 | friend class BRepFill_ACRLaw; |
121 | friend class BRepFill_Pipe; |
122 | friend class BRepFill_PipeShell; |
123 | friend class BRepFill_Evolved; |
124 | friend class BRepFill_Sweep; |
125 | friend class BRepFill_CompatibleWires; |
126 | friend class BRepFill_OffsetWire; |
127 | friend class BRepFill_OffsetAncestors; |
128 | friend class BRepFill_ApproxSeewing; |
129 | friend class BRepFill_ComputeCLine; |
130 | friend class BRepFill_TrimSurfaceTool; |
131 | friend class BRepFill_TrimEdgeTool; |
132 | friend class BRepFill_SectionPlacement; |
133 | friend class BRepFill_Section; |
134 | friend class BRepFill_TrimShellCorner; |
135 | friend class BRepFill_CurveConstraint; |
136 | friend class BRepFill_Filling; |
137 | friend class BRepFill_FaceAndOrder; |
138 | friend class BRepFill_EdgeFaceAndOrder; |
139 | |
140 | }; |
141 | |
142 | |
143 | |
144 | |
145 | |
146 | |
147 | |
148 | #endif // _BRepFill_HeaderFile |