Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:59:50

0001 // Created on: 1999-03-22
0002 // Created by: Xuan PHAM PHU
0003 // Copyright (c) 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 _TopOpeBRepTool_mkTondgE_HeaderFile
0018 #define _TopOpeBRepTool_mkTondgE_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TopoDS_Edge.hxx>
0024 #include <TopoDS_Face.hxx>
0025 #include <gp_Dir.hxx>
0026 #include <gp_Pnt2d.hxx>
0027 #include <TopoDS_Shape.hxx>
0028 #include <TopTools_ShapeMapHasher.hxx>
0029 #include <NCollection_DataMap.hxx>
0030 #include <Standard_Integer.hxx>
0031 #include <NCollection_List.hxx>
0032 
0033 class TopOpeBRepTool_mkTondgE
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT TopOpeBRepTool_mkTondgE();
0039 
0040   Standard_EXPORT bool Initialize(const TopoDS_Edge& dgE,
0041                                   const TopoDS_Face& F,
0042                                   const gp_Pnt2d&    uvi,
0043                                   const TopoDS_Face& Fi);
0044 
0045   Standard_EXPORT bool SetclE(const TopoDS_Edge& clE);
0046 
0047   Standard_EXPORT bool IsT2d() const;
0048 
0049   Standard_EXPORT bool SetRest(const double pari, const TopoDS_Edge& Ei);
0050 
0051   Standard_EXPORT int GetAllRest(NCollection_List<TopoDS_Shape>& lEi);
0052 
0053   Standard_EXPORT bool MkTonE(int& mkT, double& par1, double& par2);
0054 
0055   Standard_EXPORT bool MkTonE(const TopoDS_Edge& Ei, int& mkT, double& par1, double& par2);
0056 
0057 private:
0058   TopoDS_Edge                                                        mydgE;
0059   TopoDS_Face                                                        myF;
0060   TopoDS_Edge                                                        myclE;
0061   gp_Dir                                                             mydirINcle;
0062   TopoDS_Face                                                        myFi;
0063   gp_Pnt2d                                                           myuvi;
0064   bool                                                               isT2d;
0065   NCollection_DataMap<TopoDS_Shape, double, TopTools_ShapeMapHasher> myEpari;
0066   bool                                                               hasRest;
0067   gp_Dir                                                             myngf;
0068   gp_Dir                                                             myngfi;
0069 };
0070 
0071 #endif // _TopOpeBRepTool_mkTondgE_HeaderFile