Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-05 09:24:33

0001 // Created on: 1998-03-23
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1998-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_2d_HeaderFile
0018 #define _TopOpeBRepTool_2d_HeaderFile
0019 #include <Geom2d_Curve.hxx>
0020 #include <TopAbs_ShapeEnum.hxx>
0021 #include <TopAbs_Orientation.hxx>
0022 #include <TopAbs_State.hxx>
0023 #include <TopoDS_Shape.hxx>
0024 #include <TopTools_ShapeMapHasher.hxx>
0025 #include <NCollection_Map.hxx>
0026 #include <NCollection_List.hxx>
0027 #include <NCollection_IndexedMap.hxx>
0028 #include <NCollection_DataMap.hxx>
0029 #include <Standard_Integer.hxx>
0030 #include <NCollection_IndexedDataMap.hxx>
0031 #include <TopoDS_Face.hxx>
0032 #include <TopoDS_Edge.hxx>
0033 #include <TopoDS_Vertex.hxx>
0034 #include <TCollection_AsciiString.hxx>
0035 
0036 Standard_EXPORT int  FC2D_Prepare(const TopoDS_Shape& S1, const TopoDS_Shape& S2);
0037 Standard_EXPORT bool FC2D_HasC3D(const TopoDS_Edge& E);
0038 Standard_EXPORT bool FC2D_HasCurveOnSurface(const TopoDS_Edge& E, const TopoDS_Face& F);
0039 Standard_EXPORT bool FC2D_HasOldCurveOnSurface(const TopoDS_Edge&         E,
0040                                                const TopoDS_Face&         F,
0041                                                occ::handle<Geom2d_Curve>& C2D,
0042                                                double&                    f,
0043                                                double&                    l,
0044                                                double&                    tol);
0045 Standard_EXPORT bool FC2D_HasOldCurveOnSurface(const TopoDS_Edge&         E,
0046                                                const TopoDS_Face&         F,
0047                                                occ::handle<Geom2d_Curve>& C2D);
0048 Standard_EXPORT bool FC2D_HasNewCurveOnSurface(const TopoDS_Edge&         E,
0049                                                const TopoDS_Face&         F,
0050                                                occ::handle<Geom2d_Curve>& C2D,
0051                                                double&                    f,
0052                                                double&                    l,
0053                                                double&                    tol);
0054 Standard_EXPORT bool FC2D_HasNewCurveOnSurface(const TopoDS_Edge&         E,
0055                                                const TopoDS_Face&         F,
0056                                                occ::handle<Geom2d_Curve>& C2D);
0057 Standard_EXPORT occ::handle<Geom2d_Curve> FC2D_CurveOnSurface(const TopoDS_Edge& E,
0058                                                               const TopoDS_Face& F,
0059                                                               double&            f,
0060                                                               double&            l,
0061                                                               double&            tol,
0062                                                               const bool         trim3d = false);
0063 Standard_EXPORT occ::handle<Geom2d_Curve> FC2D_CurveOnSurface(const TopoDS_Edge& E,
0064                                                               const TopoDS_Face& F,
0065                                                               const TopoDS_Edge& EF,
0066                                                               double&            f,
0067                                                               double&            l,
0068                                                               double&            tol,
0069                                                               const bool         trim3d = false);
0070 // modified by NIZHNY-MZV
0071 Standard_EXPORT occ::handle<Geom2d_Curve> FC2D_MakeCurveOnSurface(const TopoDS_Edge& E,
0072                                                                   const TopoDS_Face& F,
0073                                                                   double&            f,
0074                                                                   double&            l,
0075                                                                   double&            tol,
0076                                                                   const bool trim3d = false);
0077 Standard_EXPORT occ::handle<Geom2d_Curve> FC2D_EditableCurveOnSurface(const TopoDS_Edge& E,
0078                                                                       const TopoDS_Face& F,
0079                                                                       double&            f,
0080                                                                       double&            l,
0081                                                                       double&            tol,
0082                                                                       const bool trim3d = false);
0083 Standard_EXPORT int FC2D_AddNewCurveOnSurface(const occ::handle<Geom2d_Curve>& PC,
0084                                               const TopoDS_Edge&               E,
0085                                               const TopoDS_Face&               F,
0086                                               const double&                    f,
0087                                               const double&                    l,
0088                                               const double&                    tol);
0089 #endif