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_AppSurf_HeaderFile
0018 #define _GeomFill_AppSurf_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_SectionGenerator;
0042 class GeomFill_Line;
0043
0044
0045
0046
0047 class GeomFill_AppSurf : public AppBlend_Approx
0048 {
0049 public:
0050
0051 DEFINE_STANDARD_ALLOC
0052
0053
0054 Standard_EXPORT GeomFill_AppSurf();
0055
0056 Standard_EXPORT GeomFill_AppSurf(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);
0057
0058 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);
0059
0060
0061 Standard_EXPORT void SetParType (const Approx_ParametrizationType ParType);
0062
0063
0064 Standard_EXPORT void SetContinuity (const GeomAbs_Shape C);
0065
0066
0067
0068
0069
0070 Standard_EXPORT void SetCriteriumWeight (const Standard_Real W1, const Standard_Real W2, const Standard_Real W3);
0071
0072
0073 Standard_EXPORT Approx_ParametrizationType ParType() const;
0074
0075
0076 Standard_EXPORT GeomAbs_Shape Continuity() const;
0077
0078
0079
0080 Standard_EXPORT void CriteriumWeight (Standard_Real& W1, Standard_Real& W2, Standard_Real& W3) const;
0081
0082 Standard_EXPORT void Perform (const Handle(GeomFill_Line)& Lin, GeomFill_SectionGenerator& SecGen, const Standard_Boolean SpApprox = Standard_False);
0083
0084 Standard_EXPORT void PerformSmoothing (const Handle(GeomFill_Line)& Lin, GeomFill_SectionGenerator& SecGen);
0085
0086 Standard_EXPORT void Perform (const Handle(GeomFill_Line)& Lin, GeomFill_SectionGenerator& SecGen, const Standard_Integer NbMaxP);
0087
0088 Standard_Boolean IsDone() const;
0089
0090 Standard_EXPORT void SurfShape (Standard_Integer& UDegree, Standard_Integer& VDegree, Standard_Integer& NbUPoles, Standard_Integer& NbVPoles, Standard_Integer& NbUKnots, Standard_Integer& NbVKnots) const;
0091
0092 Standard_EXPORT void Surface (TColgp_Array2OfPnt& TPoles, TColStd_Array2OfReal& TWeights, TColStd_Array1OfReal& TUKnots, TColStd_Array1OfReal& TVKnots, TColStd_Array1OfInteger& TUMults, TColStd_Array1OfInteger& TVMults) const;
0093
0094 Standard_Integer UDegree() const;
0095
0096 Standard_Integer VDegree() const;
0097
0098 const TColgp_Array2OfPnt& SurfPoles() const;
0099
0100 const TColStd_Array2OfReal& SurfWeights() const;
0101
0102 const TColStd_Array1OfReal& SurfUKnots() const;
0103
0104 const TColStd_Array1OfReal& SurfVKnots() const;
0105
0106 const TColStd_Array1OfInteger& SurfUMults() const;
0107
0108 const TColStd_Array1OfInteger& SurfVMults() const;
0109
0110 Standard_Integer NbCurves2d() const;
0111
0112 Standard_EXPORT void Curves2dShape (Standard_Integer& Degree, Standard_Integer& NbPoles, Standard_Integer& NbKnots) const;
0113
0114 Standard_EXPORT void Curve2d (const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, TColStd_Array1OfReal& TKnots, TColStd_Array1OfInteger& TMults) const;
0115
0116 Standard_Integer Curves2dDegree() const;
0117
0118 const TColgp_Array1OfPnt2d& Curve2dPoles (const Standard_Integer Index) const;
0119
0120 const TColStd_Array1OfReal& Curves2dKnots() const;
0121
0122 const TColStd_Array1OfInteger& Curves2dMults() const;
0123
0124 void TolReached (Standard_Real& Tol3d, Standard_Real& Tol2d) const;
0125
0126 Standard_EXPORT Standard_Real TolCurveOnSurf (const Standard_Integer Index) const;
0127
0128
0129
0130
0131 protected:
0132
0133
0134
0135
0136
0137 private:
0138
0139
0140 Standard_EXPORT void InternalPerform (const Handle(GeomFill_Line)& Lin, GeomFill_SectionGenerator& SecGen, const Standard_Boolean SpApprox, const Standard_Boolean UseVariational);
0141
0142
0143 Standard_Boolean done;
0144 Standard_Integer dmin;
0145 Standard_Integer dmax;
0146 Standard_Real tol3d;
0147 Standard_Real tol2d;
0148 Standard_Integer nbit;
0149 Standard_Integer udeg;
0150 Standard_Integer vdeg;
0151 Standard_Boolean knownp;
0152 Handle(TColgp_HArray2OfPnt) tabPoles;
0153 Handle(TColStd_HArray2OfReal) tabWeights;
0154 Handle(TColStd_HArray1OfReal) tabUKnots;
0155 Handle(TColStd_HArray1OfReal) tabVKnots;
0156 Handle(TColStd_HArray1OfInteger) tabUMults;
0157 Handle(TColStd_HArray1OfInteger) tabVMults;
0158 TColgp_SequenceOfArray1OfPnt2d seqPoles2d;
0159 Standard_Real tol3dreached;
0160 Standard_Real tol2dreached;
0161 Approx_ParametrizationType paramtype;
0162 GeomAbs_Shape continuity;
0163 Standard_Real critweights[3];
0164
0165
0166 };
0167
0168 #define TheSectionGenerator GeomFill_SectionGenerator
0169 #define TheSectionGenerator_hxx <GeomFill_SectionGenerator.hxx>
0170 #define Handle_TheLine Handle(GeomFill_Line)
0171 #define TheLine GeomFill_Line
0172 #define TheLine_hxx <GeomFill_Line.hxx>
0173 #define AppBlend_AppSurf GeomFill_AppSurf
0174 #define AppBlend_AppSurf_hxx <GeomFill_AppSurf.hxx>
0175
0176 #include <AppBlend_AppSurf.lxx>
0177
0178 #undef TheSectionGenerator
0179 #undef TheSectionGenerator_hxx
0180 #undef Handle_TheLine
0181 #undef TheLine
0182 #undef TheLine_hxx
0183 #undef AppBlend_AppSurf
0184 #undef AppBlend_AppSurf_hxx
0185
0186
0187
0188
0189 #endif