1 // Created on: 2002-08-02
2 // Created by: Alexander KARTOMIN (akm)
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _LProp3d_CLProps_HeaderFile
17 #define _LProp3d_CLProps_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Standard_Real.hxx>
24 #include <Standard_Integer.hxx>
28 #include <LProp_Status.hxx>
29 #include <Standard_Boolean.hxx>
30 class Adaptor3d_HCurve;
31 class LProp_BadContinuity;
32 class Standard_DomainError;
33 class Standard_OutOfRange;
34 class LProp_NotDefined;
38 class LProp3d_CurveTool;
49 Standard_EXPORT LProp3d_CLProps(const Handle(Adaptor3d_HCurve)& C, const Standard_Integer N, const Standard_Real Resolution);
51 Standard_EXPORT LProp3d_CLProps(const Handle(Adaptor3d_HCurve)& C, const Standard_Real U, const Standard_Integer N, const Standard_Real Resolution);
53 Standard_EXPORT LProp3d_CLProps(const Standard_Integer N, const Standard_Real Resolution);
55 Standard_EXPORT void SetParameter (const Standard_Real U);
57 Standard_EXPORT void SetCurve (const Handle(Adaptor3d_HCurve)& C);
59 Standard_EXPORT const gp_Pnt& Value() const;
61 Standard_EXPORT const gp_Vec& D1();
63 Standard_EXPORT const gp_Vec& D2();
65 Standard_EXPORT const gp_Vec& D3();
67 Standard_EXPORT Standard_Boolean IsTangentDefined();
69 Standard_EXPORT void Tangent (gp_Dir& D);
71 Standard_EXPORT Standard_Real Curvature();
73 Standard_EXPORT void Normal (gp_Dir& N);
75 Standard_EXPORT void CentreOfCurvature (gp_Pnt& P);
90 Handle(Adaptor3d_HCurve) myCurve;
92 Standard_Integer myDerOrder;
94 Standard_Real myLinTol;
98 Standard_Real myCurvature;
99 LProp_Status myTangentStatus;
100 Standard_Integer mySignificantFirstDerivativeOrder;
111 #endif // _LProp3d_CLProps_HeaderFile