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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepFill_HeaderFile
18 #define _BRepFill_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <Standard_Real.hxx>
26 #include <TColStd_Array1OfReal.hxx>
35 class BRepFill_Generator;
36 class BRepFill_SectionLaw;
37 class BRepFill_ShapeLaw;
38 class BRepFill_NSections;
40 class BRepFill_LocationLaw;
41 class BRepFill_DraftLaw;
42 class BRepFill_Edge3DLaw;
43 class BRepFill_EdgeOnSurfLaw;
44 class BRepFill_ACRLaw;
46 class BRepFill_PipeShell;
47 class BRepFill_Evolved;
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;
73 //! Computes a ruled surface between two edges.
74 Standard_EXPORT static TopoDS_Face Face (const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2);
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);
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);
88 //! Compute ACR on a wire
89 Standard_EXPORT static void ComputeACR (const TopoDS_Wire& wire, TColStd_Array1OfReal& ACR);
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);
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);
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;
148 #endif // _BRepFill_HeaderFile