File indexing completed on 2025-01-18 10:03:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomFill_AppSweep_HeaderFile
0018 #define _GeomFill_AppSweep_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <TColgp_HArray2OfPnt.hxx>
0026 #include <TColStd_HArray2OfReal.hxx>
0027 #include <TColStd_HArray1OfReal.hxx>
0028 #include <TColStd_HArray1OfInteger.hxx>
0029 #include <TColgp_SequenceOfArray1OfPnt2d.hxx>
0030 #include <Approx_ParametrizationType.hxx>
0031 #include <GeomAbs_Shape.hxx>
0032 #include <AppBlend_Approx.hxx>
0033 #include <TColgp_Array2OfPnt.hxx>
0034 #include <TColStd_Array2OfReal.hxx>
0035 #include <TColStd_Array1OfReal.hxx>
0036 #include <TColStd_Array1OfInteger.hxx>
0037 #include <TColgp_Array1OfPnt2d.hxx>
0038 class StdFail_NotDone;
0039 class Standard_DomainError;
0040 class Standard_OutOfRange;
0041 class GeomFill_SweepSectionGenerator;
0042 class GeomFill_Line;
0043
0044
0045
0046
0047
0048 class GeomFill_AppSweep : public AppBlend_Approx
0049 {
0050 public:
0051
0052 DEFINE_STANDARD_ALLOC
0053
0054
0055 Standard_EXPORT GeomFill_AppSweep();
0056
0057 Standard_EXPORT GeomFill_AppSweep(const Standard_Integer Degmin, const Standard_Integer Degmax, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIt, const Standard_Boolean KnownParameters = Standard_False);
0058
0059 Standard_EXPORT void Init (const Standard_Integer Degmin, const Standard_Integer Degmax, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIt, const Standard_Boolean KnownParameters = Standard_False);
0060
0061
0062 Standard_EXPORT void SetParType (const Approx_ParametrizationType ParType);
0063
0064
0065 Standard_EXPORT void SetContinuity (const GeomAbs_Shape C);
0066
0067
0068
0069
0070
0071 Standard_EXPORT void SetCriteriumWeight (const Standard_Real W1, const Standard_Real W2, const Standard_Real W3);
0072
0073
0074 Standard_EXPORT Approx_ParametrizationType ParType() const;
0075
0076
0077 Standard_EXPORT GeomAbs_Shape Continuity() const;
0078
0079
0080
0081 Standard_EXPORT void CriteriumWeight (Standard_Real& W1, Standard_Real& W2, Standard_Real& W3) const;
0082
0083 Standard_EXPORT void Perform (const Handle(GeomFill_Line)& Lin, GeomFill_SweepSectionGenerator& SecGen, const Standard_Boolean SpApprox = Standard_False);
0084
0085 Standard_EXPORT void PerformSmoothing (const Handle(GeomFill_Line)& Lin, GeomFill_SweepSectionGenerator& SecGen);
0086
0087 Standard_EXPORT void Perform (const Handle(GeomFill_Line)& Lin, GeomFill_SweepSectionGenerator& SecGen, const Standard_Integer NbMaxP);
0088
0089 Standard_Boolean IsDone() const;
0090
0091 Standard_EXPORT void SurfShape (Standard_Integer& UDegree, Standard_Integer& VDegree, Standard_Integer& NbUPoles, Standard_Integer& NbVPoles, Standard_Integer& NbUKnots, Standard_Integer& NbVKnots) const;
0092
0093 Standard_EXPORT void Surface (TColgp_Array2OfPnt& TPoles, TColStd_Array2OfReal& TWeights, TColStd_Array1OfReal& TUKnots, TColStd_Array1OfReal& TVKnots, TColStd_Array1OfInteger& TUMults, TColStd_Array1OfInteger& TVMults) const;
0094
0095 Standard_Integer UDegree() const;
0096
0097 Standard_Integer VDegree() const;
0098
0099 const TColgp_Array2OfPnt& SurfPoles() const;
0100
0101 const TColStd_Array2OfReal& SurfWeights() const;
0102
0103 const TColStd_Array1OfReal& SurfUKnots() const;
0104
0105 const TColStd_Array1OfReal& SurfVKnots() const;
0106
0107 const TColStd_Array1OfInteger& SurfUMults() const;
0108
0109 const TColStd_Array1OfInteger& SurfVMults() const;
0110
0111 Standard_Integer NbCurves2d() const;
0112
0113 Standard_EXPORT void Curves2dShape (Standard_Integer& Degree, Standard_Integer& NbPoles, Standard_Integer& NbKnots) const;
0114
0115 Standard_EXPORT void Curve2d (const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, TColStd_Array1OfReal& TKnots, TColStd_Array1OfInteger& TMults) const;
0116
0117 Standard_Integer Curves2dDegree() const;
0118
0119 const TColgp_Array1OfPnt2d& Curve2dPoles (const Standard_Integer Index) const;
0120
0121 const TColStd_Array1OfReal& Curves2dKnots() const;
0122
0123 const TColStd_Array1OfInteger& Curves2dMults() const;
0124
0125 void TolReached (Standard_Real& Tol3d, Standard_Real& Tol2d) const;
0126
0127 Standard_EXPORT Standard_Real TolCurveOnSurf (const Standard_Integer Index) const;
0128
0129
0130
0131
0132 protected:
0133
0134
0135
0136
0137
0138 private:
0139
0140
0141 Standard_EXPORT void InternalPerform (const Handle(GeomFill_Line)& Lin, GeomFill_SweepSectionGenerator& SecGen, const Standard_Boolean SpApprox, const Standard_Boolean UseVariational);
0142
0143
0144 Standard_Boolean done;
0145 Standard_Integer dmin;
0146 Standard_Integer dmax;
0147 Standard_Real tol3d;
0148 Standard_Real tol2d;
0149 Standard_Integer nbit;
0150 Standard_Integer udeg;
0151 Standard_Integer vdeg;
0152 Standard_Boolean knownp;
0153 Handle(TColgp_HArray2OfPnt) tabPoles;
0154 Handle(TColStd_HArray2OfReal) tabWeights;
0155 Handle(TColStd_HArray1OfReal) tabUKnots;
0156 Handle(TColStd_HArray1OfReal) tabVKnots;
0157 Handle(TColStd_HArray1OfInteger) tabUMults;
0158 Handle(TColStd_HArray1OfInteger) tabVMults;
0159 TColgp_SequenceOfArray1OfPnt2d seqPoles2d;
0160 Standard_Real tol3dreached;
0161 Standard_Real tol2dreached;
0162 Approx_ParametrizationType paramtype;
0163 GeomAbs_Shape continuity;
0164 Standard_Real critweights[3];
0165
0166
0167 };
0168
0169 #define TheSectionGenerator GeomFill_SweepSectionGenerator
0170 #define TheSectionGenerator_hxx <GeomFill_SweepSectionGenerator.hxx>
0171 #define Handle_TheLine Handle(GeomFill_Line)
0172 #define TheLine GeomFill_Line
0173 #define TheLine_hxx <GeomFill_Line.hxx>
0174 #define AppBlend_AppSurf GeomFill_AppSweep
0175 #define AppBlend_AppSurf_hxx <GeomFill_AppSweep.hxx>
0176
0177 #include <AppBlend_AppSurf.lxx>
0178
0179 #undef TheSectionGenerator
0180 #undef TheSectionGenerator_hxx
0181 #undef Handle_TheLine
0182 #undef TheLine
0183 #undef TheLine_hxx
0184 #undef AppBlend_AppSurf
0185 #undef AppBlend_AppSurf_hxx
0186
0187
0188
0189
0190 #endif