1 // Created on: 1995-07-20
2 // Created by: Modelistation
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepApprox_ApproxLine_HeaderFile
18 #define _BRepApprox_ApproxLine_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Transient.hxx>
24 #include <Standard_Integer.hxx>
25 class Geom_BSplineCurve;
26 class Geom2d_BSplineCurve;
27 class IntSurf_LineOn2S;
28 class IntSurf_PntOn2S;
31 class BRepApprox_ApproxLine;
32 DEFINE_STANDARD_HANDLE(BRepApprox_ApproxLine, Standard_Transient)
35 class BRepApprox_ApproxLine : public Standard_Transient
41 Standard_EXPORT BRepApprox_ApproxLine(const Handle(Geom_BSplineCurve)& CurveXYZ, const Handle(Geom2d_BSplineCurve)& CurveUV1, const Handle(Geom2d_BSplineCurve)& CurveUV2);
43 //! theTang variable has been entered only for compatibility with
44 //! the alias IntPatch_WLine. They are not used in this class.
45 Standard_EXPORT BRepApprox_ApproxLine(const Handle(IntSurf_LineOn2S)& lin, const Standard_Boolean theTang = Standard_False);
47 Standard_EXPORT Standard_Integer NbPnts() const;
49 Standard_EXPORT IntSurf_PntOn2S Point (const Standard_Integer Index);
54 DEFINE_STANDARD_RTTIEXT(BRepApprox_ApproxLine,Standard_Transient)
64 Handle(Geom_BSplineCurve) myCurveXYZ;
65 Handle(Geom2d_BSplineCurve) myCurveUV1;
66 Handle(Geom2d_BSplineCurve) myCurveUV2;
67 Handle(IntSurf_LineOn2S) myLineOn2S;
78 #endif // _BRepApprox_ApproxLine_HeaderFile