4e3b0677be6d02b94dd310dc8dfd85ecda2d8d38
[occt.git] / src / GCPnts / GCPnts_QuasiUniformAbscissa.cxx
1 // Copyright (c) 1996-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
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.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 //#include <GCPnts_QuasiUniformAbscissa.ixx>
16
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>
28 #include <gp_Pnt.hxx>
29
30 #ifdef OCCT_DEBUG
31 //#include <DrawTrSurf.hxx>
32
33 //static Standard_Integer compteur = 0;
34 #endif
35
36 //=======================================================================
37 //function : GCPnts_QuasiUniformAbscissa
38 //purpose  : 
39 //=======================================================================
40
41 GCPnts_QuasiUniformAbscissa::GCPnts_QuasiUniformAbscissa ()
42      :myDone(Standard_False),
43          myNbPoints(0)
44 {
45
46
47 #include <Geom_BezierCurve.hxx>
48 #include <Geom_BSplineCurve.hxx>
49
50 #define TheCurve                 Adaptor3d_Curve
51 #define Handle_TheBezierCurve   Handle(Geom_BezierCurve)
52 #define Handle_TheBSplineCurve  Handle(Geom_BSplineCurve)
53 #define TheArray1OfPnt          TColgp_Array1OfPnt
54 #define ThePnt                  gp_Pnt
55
56 #include <GCPnts_QuasiUniformAbscissa.gxx>
57
58 #undef TheCurve
59 #undef Handle_TheBezierCurve
60 #undef Handle_TheBSplineCurve
61 #undef TheArray1OfPnt     
62 #undef ThePnt
63
64 #include <Geom2d_BezierCurve.hxx>
65 #include <Geom2d_BSplineCurve.hxx>
66
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
72
73 #include <GCPnts_QuasiUniformAbscissa.gxx>
74
75
76