File indexing completed on 2026-10-27 09:36:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AdvApprox_SimpleApprox_HeaderFile
0018 #define _AdvApprox_SimpleApprox_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <NCollection_Array1.hxx>
0026 #include <NCollection_HArray1.hxx>
0027 #include <NCollection_Array2.hxx>
0028 #include <NCollection_HArray2.hxx>
0029 #include <GeomAbs_Shape.hxx>
0030 #include <AdvApprox_EvaluatorFunction.hxx>
0031 #include <Standard_OStream.hxx>
0032 #include <PLib_JacobiPolynomial.hxx>
0033
0034
0035
0036
0037
0038
0039 class AdvApprox_SimpleApprox
0040 {
0041 public:
0042 DEFINE_STANDARD_ALLOC
0043
0044 Standard_EXPORT AdvApprox_SimpleApprox(const int TotalDimension,
0045 const int TotalNumSS,
0046 const GeomAbs_Shape Continuity,
0047 const int WorkDegree,
0048 const int NbGaussPoints,
0049 const PLib_JacobiPolynomial& JacobiBase,
0050 const AdvApprox_EvaluatorFunction& Func);
0051
0052
0053
0054
0055
0056
0057
0058 Standard_EXPORT void Perform(const NCollection_Array1<int>& LocalDimension,
0059 const NCollection_Array1<double>& LocalTolerancesArray,
0060 const double First,
0061 const double Last,
0062 const int MaxDegree);
0063
0064 Standard_EXPORT bool IsDone() const;
0065
0066 Standard_EXPORT int Degree() const;
0067
0068
0069 Standard_EXPORT occ::handle<NCollection_HArray1<double>> Coefficients() const;
0070
0071
0072 Standard_EXPORT occ::handle<NCollection_HArray2<double>> FirstConstr() const;
0073
0074
0075 Standard_EXPORT occ::handle<NCollection_HArray2<double>> LastConstr() const;
0076
0077 Standard_EXPORT occ::handle<NCollection_HArray1<double>> SomTab() const;
0078
0079 Standard_EXPORT occ::handle<NCollection_HArray1<double>> DifTab() const;
0080
0081 Standard_EXPORT double MaxError(const int Index) const;
0082
0083 Standard_EXPORT double AverageError(const int Index) const;
0084
0085
0086 Standard_EXPORT void Dump(Standard_OStream& o) const;
0087
0088 private:
0089 int myTotalNumSS;
0090 int myTotalDimension;
0091 int myNbGaussPoints;
0092 int myWorkDegree;
0093 int myNivConstr;
0094 PLib_JacobiPolynomial myJacPol;
0095 occ::handle<NCollection_HArray1<double>> myTabPoints;
0096 occ::handle<NCollection_HArray2<double>> myTabWeights;
0097 void* myEvaluator;
0098 int myDegree;
0099 occ::handle<NCollection_HArray1<double>> myCoeff;
0100 occ::handle<NCollection_HArray2<double>> myFirstConstr;
0101 occ::handle<NCollection_HArray2<double>> myLastConstr;
0102 occ::handle<NCollection_HArray1<double>> mySomTab;
0103 occ::handle<NCollection_HArray1<double>> myDifTab;
0104 occ::handle<NCollection_HArray1<double>> myMaxError;
0105 occ::handle<NCollection_HArray1<double>> myAverageError;
0106 bool done;
0107 };
0108
0109 #endif