File indexing completed on 2025-01-18 10:03:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomFill_SectionLaw_HeaderFile
0018 #define _GeomFill_SectionLaw_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Transient.hxx>
0024 #include <TColgp_Array1OfPnt.hxx>
0025 #include <TColStd_Array1OfReal.hxx>
0026 #include <TColgp_Array1OfVec.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TColStd_Array1OfInteger.hxx>
0029 #include <GeomAbs_Shape.hxx>
0030 class Geom_BSplineSurface;
0031 class gp_Pnt;
0032 class Geom_Curve;
0033
0034
0035 class GeomFill_SectionLaw;
0036 DEFINE_STANDARD_HANDLE(GeomFill_SectionLaw, Standard_Transient)
0037
0038
0039 class GeomFill_SectionLaw : public Standard_Transient
0040 {
0041
0042 public:
0043
0044
0045
0046 Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, TColgp_Array1OfPnt& Poles, TColStd_Array1OfReal& Weigths) = 0;
0047
0048
0049
0050
0051 Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths);
0052
0053
0054
0055
0056 Standard_EXPORT virtual Standard_Boolean D2 (const Standard_Real Param, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfVec& D2Poles, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths, TColStd_Array1OfReal& D2Weigths);
0057
0058
0059
0060
0061 Standard_EXPORT virtual Handle(Geom_BSplineSurface) BSplineSurface() const;
0062
0063
0064 Standard_EXPORT virtual void SectionShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree) const = 0;
0065
0066
0067 Standard_EXPORT virtual void Knots (TColStd_Array1OfReal& TKnots) const = 0;
0068
0069
0070 Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const = 0;
0071
0072
0073 Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
0074
0075
0076 Standard_EXPORT virtual Standard_Boolean IsUPeriodic() const = 0;
0077
0078
0079 Standard_EXPORT virtual Standard_Boolean IsVPeriodic() const = 0;
0080
0081
0082
0083
0084 Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const = 0;
0085
0086
0087
0088
0089
0090
0091 Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const = 0;
0092
0093
0094
0095
0096
0097 Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) = 0;
0098
0099
0100
0101 Standard_EXPORT virtual void GetInterval (Standard_Real& First, Standard_Real& Last) const = 0;
0102
0103
0104
0105
0106 Standard_EXPORT virtual void GetDomain (Standard_Real& First, Standard_Real& Last) const = 0;
0107
0108
0109
0110
0111
0112
0113 Standard_EXPORT virtual void GetTolerance (const Standard_Real BoundTol, const Standard_Real SurfTol, const Standard_Real AngleTol, TColStd_Array1OfReal& Tol3d) const = 0;
0114
0115
0116
0117
0118 Standard_EXPORT virtual void SetTolerance (const Standard_Real Tol3d, const Standard_Real Tol2d);
0119
0120
0121
0122
0123
0124
0125 Standard_EXPORT virtual gp_Pnt BarycentreOfSurf() const;
0126
0127
0128
0129
0130 Standard_EXPORT virtual Standard_Real MaximalSection() const = 0;
0131
0132
0133
0134
0135
0136
0137 Standard_EXPORT virtual void GetMinimalWeight (TColStd_Array1OfReal& Weigths) const;
0138
0139
0140 Standard_EXPORT virtual Standard_Boolean IsConstant (Standard_Real& Error) const;
0141
0142
0143
0144 Standard_EXPORT virtual Handle(Geom_Curve) ConstantSection() const;
0145
0146
0147
0148
0149 Standard_EXPORT virtual Standard_Boolean IsConicalLaw (Standard_Real& Error) const;
0150
0151
0152
0153 Standard_EXPORT virtual Handle(Geom_Curve) CirclSection (const Standard_Real Param) const;
0154
0155
0156
0157
0158 DEFINE_STANDARD_RTTIEXT(GeomFill_SectionLaw,Standard_Transient)
0159
0160 protected:
0161
0162
0163
0164
0165 private:
0166
0167
0168
0169
0170 };
0171
0172
0173
0174
0175
0176
0177
0178 #endif