42cf5bc1 |
1 | // Created on: 1995-06-12 |
2 | // Created by: Joelle CHAUVET |
3 | // Copyright (c) 1995-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 _ChFi2d_HeaderFile |
18 | #define _ChFi2d_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <ChFi2d_ConstructionError.hxx> |
26 | class TopoDS_Edge; |
27 | class TopoDS_Vertex; |
28 | class TopoDS_Face; |
29 | class ChFi2d_Builder; |
30 | |
31 | |
32 | //! This package contains the algorithms used to build |
33 | //! fillets or chamfers on planar wire. |
34 | //! |
35 | //! This package provides two algorithms for 2D fillets: |
36 | //! ChFi2d_Builder - it constructs a fillet or chamfer |
37 | //! for linear and circular edges of a face. |
38 | //! ChFi2d_FilletAPI - it encapsulates two algorithms: |
39 | //! ChFi2d_AnaFilletAlgo - analytical constructor of the fillet. |
40 | //! It works only for linear and circular edges, |
41 | //! having a common point. |
42 | //! ChFi2d_FilletAlgo - iteration recursive method constructing |
43 | //! the fillet edge for any type of edges including |
44 | //! ellipses and b-splines. |
45 | //! The edges may even have no common point. |
46 | //! ChFi2d_ChamferAPI - an algoroithm for construction of chamfers |
47 | //! between two linear edges of a plane. |
48 | //! |
49 | //! The algorithms ChFi2d_AnaFilletAlgo and ChFi2d_FilletAlgo may be used directly |
50 | //! or via the interface class ChFi2d_FilletAPI. |
51 | class ChFi2d |
52 | { |
53 | public: |
54 | |
55 | DEFINE_STANDARD_ALLOC |
56 | |
57 | |
58 | |
59 | |
60 | |
61 | protected: |
62 | |
63 | |
64 | |
65 | |
66 | |
67 | private: |
68 | |
69 | |
70 | Standard_EXPORT static Standard_Boolean CommonVertex (const TopoDS_Edge& E1, const TopoDS_Edge& E2, TopoDS_Vertex& V); |
71 | |
72 | Standard_EXPORT static ChFi2d_ConstructionError FindConnectedEdges (const TopoDS_Face& F, const TopoDS_Vertex& V, TopoDS_Edge& E1, TopoDS_Edge& E2); |
73 | |
74 | |
75 | |
76 | friend class ChFi2d_Builder; |
77 | |
78 | }; |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | #endif // _ChFi2d_HeaderFile |