File indexing completed on 2025-01-18 10:04:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntCurveSurface_ThePolygonOfHInter_HeaderFile
0018 #define _IntCurveSurface_ThePolygonOfHInter_HeaderFile
0019
0020 #include <Adaptor3d_Curve.hxx>
0021 #include <Bnd_Box.hxx>
0022 #include <TColgp_Array1OfPnt.hxx>
0023 #include <TColStd_HArray1OfReal.hxx>
0024 #include <TColStd_Array1OfReal.hxx>
0025 class Standard_OutOfRange;
0026 class IntCurveSurface_TheHCurveTool;
0027 class Bnd_Box;
0028 class gp_Pnt;
0029
0030 class IntCurveSurface_ThePolygonOfHInter
0031 {
0032 public:
0033
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037 Standard_EXPORT IntCurveSurface_ThePolygonOfHInter(const Handle(Adaptor3d_Curve)& Curve, const Standard_Integer NbPnt);
0038
0039 Standard_EXPORT IntCurveSurface_ThePolygonOfHInter(const Handle(Adaptor3d_Curve)& Curve, const Standard_Real U1, const Standard_Real U2, const Standard_Integer NbPnt);
0040
0041 Standard_EXPORT IntCurveSurface_ThePolygonOfHInter(const Handle(Adaptor3d_Curve)& Curve, const TColStd_Array1OfReal& Upars);
0042
0043
0044 const Bnd_Box& Bounding() const { return TheBnd; }
0045
0046 Standard_Real DeflectionOverEstimation() const { return TheDeflection; }
0047
0048 void SetDeflectionOverEstimation (const Standard_Real x)
0049 {
0050 TheDeflection = x;
0051 TheBnd.Enlarge (TheDeflection);
0052 }
0053
0054 void Closed (const Standard_Boolean flag) { ClosedPolygon = flag; }
0055
0056 Standard_Boolean Closed() const { return Standard_False; }
0057
0058
0059 Standard_Integer NbSegments() const { return NbPntIn - 1; }
0060
0061
0062 const gp_Pnt& BeginOfSeg (const Standard_Integer theIndex) const { return ThePnts (theIndex); }
0063
0064
0065 const gp_Pnt& EndOfSeg (const Standard_Integer theIndex) const { return ThePnts (theIndex + 1); }
0066
0067
0068
0069 Standard_Real InfParameter() const { return Binf; }
0070
0071
0072
0073 Standard_Real SupParameter() const { return Bsup; }
0074
0075
0076
0077 Standard_EXPORT Standard_Real ApproxParamOnCurve (const Standard_Integer Index, const Standard_Real ParamOnLine) const;
0078
0079 Standard_EXPORT void Dump() const;
0080
0081 protected:
0082
0083 Standard_EXPORT void Init (const Handle(Adaptor3d_Curve)& Curve);
0084
0085 Standard_EXPORT void Init (const Handle(Adaptor3d_Curve)& Curve, const TColStd_Array1OfReal& Upars);
0086
0087 private:
0088
0089 Bnd_Box TheBnd;
0090 Standard_Real TheDeflection;
0091 Standard_Integer NbPntIn;
0092 TColgp_Array1OfPnt ThePnts;
0093 Standard_Boolean ClosedPolygon;
0094 Standard_Real Binf;
0095 Standard_Real Bsup;
0096 Handle(TColStd_HArray1OfReal) myParams;
0097
0098 };
0099
0100 #endif