Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:32

0001 // Copyright (c) 2021 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _GCPnts_TCurveTypes_HeaderFile
0015 #define _GCPnts_TCurveTypes_HeaderFile
0016 
0017 #include <Adaptor2d_Curve2d.hxx>
0018 #include <Adaptor3d_Curve.hxx>
0019 #include <Geom_BezierCurve.hxx>
0020 #include <Geom_BSplineCurve.hxx>
0021 #include <Geom2d_BezierCurve.hxx>
0022 #include <Geom2d_BSplineCurve.hxx>
0023 #include <GCPnts_DistFunction.hxx>
0024 #include <GCPnts_DistFunction2d.hxx>
0025 
0026 //! Auxiliary tool to resolve 2D/3D curve classes.
0027 template<class TheCurve> struct GCPnts_TCurveTypes {};
0028 
0029 //! Auxiliary tool to resolve 3D curve classes.
0030 template<> struct GCPnts_TCurveTypes<Adaptor3d_Curve>
0031 {
0032   typedef gp_Pnt                Point;
0033   typedef Geom_BezierCurve      BezierCurve;
0034   typedef Geom_BSplineCurve     BSplineCurve;
0035   typedef GCPnts_DistFunction   DistFunction;
0036   typedef GCPnts_DistFunctionMV DistFunctionMV;
0037 };
0038 
0039 //! Auxiliary tool to resolve 2D curve classes.
0040 template<> struct GCPnts_TCurveTypes<Adaptor2d_Curve2d>
0041 {
0042   typedef gp_Pnt2d                Point;
0043   typedef Geom2d_BezierCurve      BezierCurve;
0044   typedef Geom2d_BSplineCurve     BSplineCurve;
0045   typedef GCPnts_DistFunction2d   DistFunction;
0046   typedef GCPnts_DistFunction2dMV DistFunctionMV;
0047 };
0048 
0049 #endif // _GCPnts_TCurveTypes_HeaderFile