Warning, file /include/opencascade/ShapeCustom_Curve2d.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeCustom_Curve2d_HeaderFile
0017 #define _ShapeCustom_Curve2d_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <TColgp_Array1OfPnt2d.hxx>
0024 class Geom2d_Line;
0025 class Geom2d_Curve;
0026 class Geom2d_BSplineCurve;
0027
0028
0029
0030
0031 class ShapeCustom_Curve2d
0032 {
0033 public:
0034
0035 DEFINE_STANDARD_ALLOC
0036
0037
0038
0039
0040 Standard_EXPORT static Standard_Boolean IsLinear (const TColgp_Array1OfPnt2d& thePoles, const Standard_Real theTolerance, Standard_Real& theDeviation);
0041
0042
0043
0044
0045 Standard_EXPORT static Handle(Geom2d_Line) ConvertToLine2d (const Handle(Geom2d_Curve)& theCurve, const Standard_Real theFirstIn, const Standard_Real theLastIn, const Standard_Real theTolerance, Standard_Real& theNewFirst, Standard_Real& theNewLast, Standard_Real& theDeviation);
0046
0047
0048
0049
0050 Standard_EXPORT static Standard_Boolean SimplifyBSpline2d (Handle(Geom2d_BSplineCurve)& theBSpline2d, const Standard_Real theTolerance);
0051
0052
0053
0054
0055 protected:
0056
0057
0058
0059
0060
0061 private:
0062
0063
0064
0065
0066
0067 };
0068
0069
0070
0071
0072
0073
0074
0075 #endif