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
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 _ChFi2d_HeaderFile
18 #define _ChFi2d_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <ChFi2d_ConstructionError.hxx>
32 //! This package contains the algorithms used to build
33 //! fillets or chamfers on planar wire.
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.
49 //! The algorithms ChFi2d_AnaFilletAlgo and ChFi2d_FilletAlgo may be used directly
50 //! or via the interface class ChFi2d_FilletAPI.
70 Standard_EXPORT static Standard_Boolean CommonVertex (const TopoDS_Edge& E1, const TopoDS_Edge& E2, TopoDS_Vertex& V);
72 Standard_EXPORT static ChFi2d_ConstructionError FindConnectedEdges (const TopoDS_Face& F, const TopoDS_Vertex& V, TopoDS_Edge& E1, TopoDS_Edge& E2);
76 friend class ChFi2d_Builder;
86 #endif // _ChFi2d_HeaderFile