File indexing completed on 2026-11-25 10:08:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomFill_CorrectedFrenet_HeaderFile
0018 #define _GeomFill_CorrectedFrenet_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <NCollection_Array1.hxx>
0023 #include <NCollection_HArray1.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <GeomFill_TrihedronLaw.hxx>
0026 #include <Standard_Real.hxx>
0027 #include <NCollection_Sequence.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <GeomAbs_Shape.hxx>
0030 #include <GeomFill_Trihedron.hxx>
0031 class GeomFill_Frenet;
0032 class Law_Function;
0033
0034
0035
0036 class GeomFill_CorrectedFrenet : public GeomFill_TrihedronLaw
0037 {
0038
0039 public:
0040 Standard_EXPORT GeomFill_CorrectedFrenet();
0041
0042 Standard_EXPORT GeomFill_CorrectedFrenet(const bool ForEvaluation);
0043
0044 Standard_EXPORT occ::handle<GeomFill_TrihedronLaw> Copy() const override;
0045
0046
0047
0048 Standard_EXPORT bool SetCurve(const occ::handle<Adaptor3d_Curve>& C) override;
0049
0050 Standard_EXPORT void SetInterval(const double First, const double Last) override;
0051
0052
0053 Standard_EXPORT bool D0(const double Param,
0054 gp_Vec& Tangent,
0055 gp_Vec& Normal,
0056 gp_Vec& BiNormal) override;
0057
0058
0059
0060
0061 Standard_EXPORT bool D1(const double Param,
0062 gp_Vec& Tangent,
0063 gp_Vec& DTangent,
0064 gp_Vec& Normal,
0065 gp_Vec& DNormal,
0066 gp_Vec& BiNormal,
0067 gp_Vec& DBiNormal) override;
0068
0069
0070
0071
0072 Standard_EXPORT bool D2(const double Param,
0073 gp_Vec& Tangent,
0074 gp_Vec& DTangent,
0075 gp_Vec& D2Tangent,
0076 gp_Vec& Normal,
0077 gp_Vec& DNormal,
0078 gp_Vec& D2Normal,
0079 gp_Vec& BiNormal,
0080 gp_Vec& DBiNormal,
0081 gp_Vec& D2BiNormal) override;
0082
0083
0084
0085
0086 Standard_EXPORT int NbIntervals(const GeomAbs_Shape S) const override;
0087
0088
0089
0090
0091
0092
0093 Standard_EXPORT void Intervals(NCollection_Array1<double>& T,
0094 const GeomAbs_Shape S) const override;
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104 Standard_EXPORT GeomFill_Trihedron EvaluateBestMode();
0105
0106
0107
0108 Standard_EXPORT void GetAverageLaw(gp_Vec& ATangent, gp_Vec& ANormal, gp_Vec& ABiNormal) override;
0109
0110
0111 Standard_EXPORT bool IsConstant() const override;
0112
0113
0114 Standard_EXPORT bool IsOnlyBy3dCurve() const override;
0115
0116 DEFINE_STANDARD_RTTIEXT(GeomFill_CorrectedFrenet, GeomFill_TrihedronLaw)
0117
0118 private:
0119 Standard_EXPORT void Init();
0120
0121
0122
0123 Standard_EXPORT bool InitInterval(const double First,
0124 const double Last,
0125 const double Step,
0126 double& startAng,
0127 gp_Vec& prevTangent,
0128 gp_Vec& prevNormal,
0129 gp_Vec& aT,
0130 gp_Vec& aN,
0131 occ::handle<Law_Function>& FuncInt,
0132 NCollection_Sequence<double>& SeqPoles,
0133 NCollection_Sequence<double>& SeqAngle,
0134 NCollection_Sequence<gp_Vec>& SeqTangent,
0135 NCollection_Sequence<gp_Vec>& SeqNormal) const;
0136
0137
0138 Standard_EXPORT double CalcAngleAT(const gp_Vec& Tangent,
0139 const gp_Vec& Normal,
0140 const gp_Vec& prevTangent,
0141 const gp_Vec& prevNormal) const;
0142
0143
0144 Standard_EXPORT double GetAngleAT(const double P) const;
0145
0146 occ::handle<GeomFill_Frenet> frenet;
0147 occ::handle<Law_Function> EvolAroundT;
0148 occ::handle<Law_Function> TLaw;
0149 gp_Vec AT;
0150 gp_Vec AN;
0151 bool isFrenet;
0152 bool myForEvaluation;
0153 occ::handle<NCollection_HArray1<double>> HArrPoles;
0154 occ::handle<NCollection_HArray1<double>> HArrAngle;
0155 occ::handle<NCollection_HArray1<gp_Vec>> HArrTangent;
0156 occ::handle<NCollection_HArray1<gp_Vec>> HArrNormal;
0157 };
0158
0159 #endif