1 // Created on: 1994-09-06
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1994-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 _Geom2dLProp_CurAndInf2d_HeaderFile
18 #define _Geom2dLProp_CurAndInf2d_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <LProp_CurAndInf.hxx>
28 //! An algorithm for computing local properties of a curve.
29 //! These properties include:
30 //! - the maximum and minimum curvatures
31 //! - the inflection points.
32 //! A CurAndInf2d object provides the framework for:
33 //! - defining the curve to be analyzed
34 //! - implementing the computation algorithms
35 //! - consulting the results.
36 class Geom2dLProp_CurAndInf2d : public LProp_CurAndInf
43 //! Initializes the framework.
44 //! Note: The curve on which the local properties are
45 //! computed is defined using one of the following
46 //! functions: Perform, PerformCurExt or PerformInf.
47 Standard_EXPORT Geom2dLProp_CurAndInf2d();
49 //! For the curve C, Computes both the
50 //! inflection points and the maximum and minimum curvatures.
51 Standard_EXPORT void Perform (const Handle(Geom2d_Curve)& C);
53 //! For the curve C, Computes the locals extremas of curvature.
54 Standard_EXPORT void PerformCurExt (const Handle(Geom2d_Curve)& C);
56 //! For the curve C, Computes the inflections.
57 //! After computation, the following functions can be used:
58 //! - IsDone to check if the computation was successful
59 //! - NbPoints to obtain the number of computed particular points
60 //! - Parameter to obtain the parameter on the curve for
61 //! each particular point
62 //! - Type to check if the point is an inflection point or an
63 //! extremum of curvature of the curve C.
65 //! These functions can be used to analyze a series of
66 //! curves, however it is necessary to clear the table of
67 //! results between each computation.
68 Standard_EXPORT void PerformInf (const Handle(Geom2d_Curve)& C);
70 //! True if the solutions are found.
71 Standard_EXPORT Standard_Boolean IsDone() const;
86 Standard_Boolean isDone;
97 #endif // _Geom2dLProp_CurAndInf2d_HeaderFile