File indexing completed on 2025-01-18 10:03:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomFill_NSections_HeaderFile
0018 #define _GeomFill_NSections_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Standard_Real.hxx>
0023 #include <TColGeom_SequenceOfCurve.hxx>
0024 #include <GeomFill_SequenceOfTrsf.hxx>
0025 #include <TColStd_SequenceOfReal.hxx>
0026 #include <GeomFill_SectionLaw.hxx>
0027 #include <TColgp_Array1OfPnt.hxx>
0028 #include <TColStd_Array1OfReal.hxx>
0029 #include <TColgp_Array1OfVec.hxx>
0030 #include <Standard_Integer.hxx>
0031 #include <TColStd_Array1OfInteger.hxx>
0032 #include <GeomAbs_Shape.hxx>
0033 class Geom_BSplineSurface;
0034 class gp_Pnt;
0035 class Geom_Curve;
0036
0037
0038 class GeomFill_NSections;
0039 DEFINE_STANDARD_HANDLE(GeomFill_NSections, GeomFill_SectionLaw)
0040
0041
0042 class GeomFill_NSections : public GeomFill_SectionLaw
0043 {
0044
0045 public:
0046
0047
0048
0049 Standard_EXPORT GeomFill_NSections(const TColGeom_SequenceOfCurve& NC);
0050
0051
0052 Standard_EXPORT GeomFill_NSections(const TColGeom_SequenceOfCurve& NC, const TColStd_SequenceOfReal& NP);
0053
0054
0055
0056 Standard_EXPORT GeomFill_NSections(const TColGeom_SequenceOfCurve& NC, const TColStd_SequenceOfReal& NP, const Standard_Real UF, const Standard_Real UL);
0057
0058
0059
0060
0061 Standard_EXPORT GeomFill_NSections(const TColGeom_SequenceOfCurve& NC, const TColStd_SequenceOfReal& NP, const Standard_Real UF, const Standard_Real UL, const Standard_Real VF, const Standard_Real VL);
0062
0063
0064
0065
0066
0067
0068 Standard_EXPORT GeomFill_NSections(const TColGeom_SequenceOfCurve& NC, const GeomFill_SequenceOfTrsf& Trsfs, const TColStd_SequenceOfReal& NP, const Standard_Real UF, const Standard_Real UL, const Standard_Real VF, const Standard_Real VL, const Handle(Geom_BSplineSurface)& Surf);
0069
0070
0071 Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, TColgp_Array1OfPnt& Poles, TColStd_Array1OfReal& Weigths) Standard_OVERRIDE;
0072
0073
0074
0075
0076 Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths) Standard_OVERRIDE;
0077
0078
0079
0080
0081 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) Standard_OVERRIDE;
0082
0083
0084 Standard_EXPORT void SetSurface (const Handle(Geom_BSplineSurface)& RefSurf);
0085
0086
0087 Standard_EXPORT void ComputeSurface();
0088
0089
0090
0091
0092 Standard_EXPORT virtual Handle(Geom_BSplineSurface) BSplineSurface() const Standard_OVERRIDE;
0093
0094
0095 Standard_EXPORT virtual void SectionShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree) const Standard_OVERRIDE;
0096
0097
0098 Standard_EXPORT virtual void Knots (TColStd_Array1OfReal& TKnots) const Standard_OVERRIDE;
0099
0100
0101 Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
0102
0103
0104 Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
0105
0106
0107 Standard_EXPORT virtual Standard_Boolean IsUPeriodic() const Standard_OVERRIDE;
0108
0109
0110 Standard_EXPORT virtual Standard_Boolean IsVPeriodic() const Standard_OVERRIDE;
0111
0112
0113
0114
0115 Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
0116
0117
0118
0119
0120
0121
0122 Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
0123
0124
0125
0126
0127
0128 Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE;
0129
0130
0131
0132 Standard_EXPORT virtual void GetInterval (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE;
0133
0134
0135
0136
0137 Standard_EXPORT virtual void GetDomain (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE;
0138
0139
0140
0141
0142
0143
0144 Standard_EXPORT virtual void GetTolerance (const Standard_Real BoundTol, const Standard_Real SurfTol, const Standard_Real AngleTol, TColStd_Array1OfReal& Tol3d) const Standard_OVERRIDE;
0145
0146
0147
0148
0149
0150
0151 Standard_EXPORT virtual gp_Pnt BarycentreOfSurf() const Standard_OVERRIDE;
0152
0153
0154
0155
0156 Standard_EXPORT virtual Standard_Real MaximalSection() const Standard_OVERRIDE;
0157
0158
0159
0160
0161
0162
0163 Standard_EXPORT virtual void GetMinimalWeight (TColStd_Array1OfReal& Weigths) const Standard_OVERRIDE;
0164
0165
0166 Standard_EXPORT virtual Standard_Boolean IsConstant (Standard_Real& Error) const Standard_OVERRIDE;
0167
0168
0169 Standard_EXPORT virtual Handle(Geom_Curve) ConstantSection() const Standard_OVERRIDE;
0170
0171
0172
0173
0174 Standard_EXPORT virtual Standard_Boolean IsConicalLaw (Standard_Real& Error) const Standard_OVERRIDE;
0175
0176
0177
0178 Standard_EXPORT virtual Handle(Geom_Curve) CirclSection (const Standard_Real Param) const Standard_OVERRIDE;
0179
0180
0181
0182
0183 DEFINE_STANDARD_RTTIEXT(GeomFill_NSections,GeomFill_SectionLaw)
0184
0185 protected:
0186
0187
0188
0189
0190 private:
0191
0192
0193 Standard_Real UFirst;
0194 Standard_Real ULast;
0195 Standard_Real VFirst;
0196 Standard_Real VLast;
0197 TColGeom_SequenceOfCurve mySections;
0198 GeomFill_SequenceOfTrsf myTrsfs;
0199 TColStd_SequenceOfReal myParams;
0200 Handle(Geom_BSplineSurface) mySurface;
0201 Handle(Geom_BSplineSurface) myRefSurf;
0202
0203
0204 };
0205
0206
0207
0208
0209
0210
0211
0212 #endif