Warning, file /include/opencascade/Approx_CurvilinearParameter.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
0017 #ifndef _Approx_CurvilinearParameter_HeaderFile
0018 #define _Approx_CurvilinearParameter_HeaderFile
0019
0020 #include <Adaptor2d_Curve2d.hxx>
0021 #include <Adaptor3d_Surface.hxx>
0022 #include <GeomAbs_Shape.hxx>
0023 #include <Standard_OStream.hxx>
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 class Approx_CurvilinearParameter
0037 {
0038 public:
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT Approx_CurvilinearParameter(const occ::handle<Adaptor3d_Curve>& C3D,
0043 const double Tol,
0044 const GeomAbs_Shape Order,
0045 const int MaxDegree,
0046 const int MaxSegments);
0047
0048
0049 Standard_EXPORT Approx_CurvilinearParameter(const occ::handle<Adaptor2d_Curve2d>& C2D,
0050 const occ::handle<Adaptor3d_Surface>& Surf,
0051 const double Tol,
0052 const GeomAbs_Shape Order,
0053 const int MaxDegree,
0054 const int MaxSegments);
0055
0056
0057 Standard_EXPORT Approx_CurvilinearParameter(const occ::handle<Adaptor2d_Curve2d>& C2D1,
0058 const occ::handle<Adaptor3d_Surface>& Surf1,
0059 const occ::handle<Adaptor2d_Curve2d>& C2D2,
0060 const occ::handle<Adaptor3d_Surface>& Surf2,
0061 const double Tol,
0062 const GeomAbs_Shape Order,
0063 const int MaxDegree,
0064 const int MaxSegments);
0065
0066 Standard_EXPORT bool IsDone() const;
0067
0068 Standard_EXPORT bool HasResult() const;
0069
0070
0071 Standard_EXPORT occ::handle<Geom_BSplineCurve> Curve3d() const;
0072
0073
0074 Standard_EXPORT double MaxError3d() const;
0075
0076
0077
0078 Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Curve2d1() const;
0079
0080
0081 Standard_EXPORT double MaxError2d1() const;
0082
0083
0084
0085 Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Curve2d2() const;
0086
0087
0088 Standard_EXPORT double MaxError2d2() const;
0089
0090
0091 Standard_EXPORT void Dump(Standard_OStream& o) const;
0092
0093 private:
0094 Standard_EXPORT static void ToleranceComputation(const occ::handle<Adaptor2d_Curve2d>& C2D,
0095 const occ::handle<Adaptor3d_Surface>& S,
0096 const int MaxNumber,
0097 const double Tol,
0098 double& TolV,
0099 double& TolW);
0100
0101 private:
0102 int myCase;
0103 bool myDone;
0104 bool myHasResult;
0105 occ::handle<Geom_BSplineCurve> myCurve3d;
0106 double myMaxError3d;
0107 occ::handle<Geom2d_BSplineCurve> myCurve2d1;
0108 double myMaxError2d1;
0109 occ::handle<Geom2d_BSplineCurve> myCurve2d2;
0110 double myMaxError2d2;
0111 };
0112
0113 #endif