1 // Copyright (c) 1996-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 //#include <GCPnts_QuasiUniformAbscissa.ixx>
17 #include <StdFail_NotDone.hxx>
18 #include <Standard_DomainError.hxx>
19 #include <Standard_OutOfRange.hxx>
20 #include <Standard_ConstructionError.hxx>
21 #include <GCPnts_QuasiUniformAbscissa.hxx>
22 #include <GCPnts_UniformAbscissa.hxx>
23 #include <Adaptor3d_Curve.hxx>
24 #include <Adaptor2d_Curve2d.hxx>
25 #include <TColgp_Array1OfPnt2d.hxx>
26 #include <gp_Pnt2d.hxx>
27 #include <TColgp_Array1OfPnt.hxx>
31 //#include <DrawTrSurf.hxx>
33 //static Standard_Integer compteur = 0;
36 //=======================================================================
37 //function : GCPnts_QuasiUniformAbscissa
39 //=======================================================================
41 GCPnts_QuasiUniformAbscissa::GCPnts_QuasiUniformAbscissa ()
42 :myDone(Standard_False),
47 #include <Geom_BezierCurve.hxx>
48 #include <Geom_BSplineCurve.hxx>
50 #define TheCurve Adaptor3d_Curve
51 #define Handle_TheBezierCurve Handle(Geom_BezierCurve)
52 #define Handle_TheBSplineCurve Handle(Geom_BSplineCurve)
53 #define TheArray1OfPnt TColgp_Array1OfPnt
56 #include "GCPnts_QuasiUniformAbscissa.pxx"
59 #undef Handle_TheBezierCurve
60 #undef Handle_TheBSplineCurve
64 #include <Geom2d_BezierCurve.hxx>
65 #include <Geom2d_BSplineCurve.hxx>
67 #define TheCurve Adaptor2d_Curve2d
68 #define Handle_TheBezierCurve Handle(Geom2d_BezierCurve)
69 #define Handle_TheBSplineCurve Handle(Geom2d_BSplineCurve)
70 #define TheArray1OfPnt TColgp_Array1OfPnt2d
71 #define ThePnt gp_Pnt2d
73 #include "GCPnts_QuasiUniformAbscissa.pxx"