Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:17:15

0001 // Created on: 1995-06-12
0002 // Created by: Joelle CHAUVET
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _ChFi2d_HeaderFile
0018 #define _ChFi2d_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <ChFi2d_ConstructionError.hxx>
0026 class TopoDS_Edge;
0027 class TopoDS_Vertex;
0028 class TopoDS_Face;
0029 
0030 //! This package contains the algorithms used to build
0031 //! fillets or chamfers on planar wire.
0032 //!
0033 //! This package provides two algorithms for 2D fillets:
0034 //! ChFi2d_Builder - it constructs a fillet or chamfer
0035 //! for linear and circular edges of a face.
0036 //! ChFi2d_FilletAPI - it encapsulates two algorithms:
0037 //! ChFi2d_AnaFilletAlgo - analytical constructor of the fillet.
0038 //! It works only for linear and circular edges,
0039 //! having a common point.
0040 //! ChFi2d_FilletAlgo - iteration recursive method constructing
0041 //! the fillet edge for any type of edges including
0042 //! ellipses and b-splines.
0043 //! The edges may even have no common point.
0044 //! ChFi2d_ChamferAPI - an algorithm for construction of chamfers
0045 //! between two linear edges of a plane.
0046 //!
0047 //! The algorithms ChFi2d_AnaFilletAlgo and ChFi2d_FilletAlgo may be used directly
0048 //! or via the interface class ChFi2d_FilletAPI.
0049 class ChFi2d
0050 {
0051 public:
0052   DEFINE_STANDARD_ALLOC
0053 
0054   Standard_EXPORT static bool CommonVertex(const TopoDS_Edge& E1,
0055                                            const TopoDS_Edge& E2,
0056                                            TopoDS_Vertex&     V);
0057 
0058   Standard_EXPORT static ChFi2d_ConstructionError FindConnectedEdges(const TopoDS_Face&   F,
0059                                                                      const TopoDS_Vertex& V,
0060                                                                      TopoDS_Edge&         E1,
0061                                                                      TopoDS_Edge&         E2);
0062 };
0063 
0064 #endif // _ChFi2d_HeaderFile