File indexing completed on 2025-01-18 10:03:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_ECC_HeaderFile
0018 #define _Extrema_ECC_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <math_Vector.hxx>
0025 #include <TColStd_SequenceOfReal.hxx>
0026 #include <TColgp_HArray1OfPnt.hxx>
0027
0028 class Adaptor3d_Curve;
0029 class Extrema_CurveTool;
0030 class Extrema_POnCurv;
0031 class gp_Pnt;
0032 class gp_Vec;
0033
0034
0035 class Extrema_ECC
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043
0044
0045 Standard_EXPORT Extrema_ECC();
0046
0047
0048
0049
0050
0051 Standard_EXPORT Extrema_ECC(const Adaptor3d_Curve& C1, const Adaptor3d_Curve& C2);
0052
0053
0054
0055
0056 Standard_EXPORT Extrema_ECC(const Adaptor3d_Curve& C1, const Adaptor3d_Curve& C2, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup);
0057
0058
0059 Standard_EXPORT void SetParams (const Adaptor3d_Curve& C1, const Adaptor3d_Curve& C2, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup);
0060
0061 Standard_EXPORT void SetTolerance (const Standard_Real Tol);
0062
0063
0064 Standard_EXPORT void SetSingleSolutionFlag (const Standard_Boolean theSingleSolutionFlag);
0065
0066
0067 Standard_EXPORT Standard_Boolean GetSingleSolutionFlag () const;
0068
0069
0070 Standard_EXPORT void Perform();
0071
0072
0073 Standard_EXPORT Standard_Boolean IsDone() const;
0074
0075
0076 Standard_EXPORT Standard_Boolean IsParallel() const;
0077
0078
0079 Standard_EXPORT Standard_Integer NbExt() const;
0080
0081
0082 Standard_EXPORT Standard_Real SquareDistance (const Standard_Integer N = 1) const;
0083
0084
0085
0086 Standard_EXPORT void Points (const Standard_Integer N, Extrema_POnCurv& P1, Extrema_POnCurv& P2) const;
0087
0088
0089
0090
0091 protected:
0092
0093
0094
0095
0096
0097 private:
0098
0099
0100 Standard_Boolean myIsFindSingleSolution;
0101 Standard_Boolean myParallel;
0102 Standard_Real myCurveMinTol;
0103 math_Vector myLowBorder;
0104 math_Vector myUppBorder;
0105 TColStd_SequenceOfReal myPoints1;
0106 TColStd_SequenceOfReal myPoints2;
0107 Standard_Address myC[2];
0108 Standard_Boolean myDone;
0109
0110
0111 };
0112
0113
0114
0115
0116
0117
0118
0119 #endif