File indexing completed on 2026-09-24 09:16:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntPatch_ALineToWLine_HeaderFile
0018 #define _IntPatch_ALineToWLine_HeaderFile
0019
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <IntPatch_Line.hxx>
0022 #include <NCollection_Sequence.hxx>
0023 #include <IntSurf_Quadric.hxx>
0024 #include <IntSurf_LineOn2S.hxx>
0025
0026 class IntPatch_ALine;
0027 class IntSurf_PntOn2S;
0028
0029 class IntPatch_ALineToWLine
0030 {
0031 public:
0032 DEFINE_STANDARD_ALLOC
0033
0034
0035 Standard_EXPORT IntPatch_ALineToWLine(const occ::handle<Adaptor3d_Surface>& theS1,
0036 const occ::handle<Adaptor3d_Surface>& theS2,
0037 const int theNbPoints = 200);
0038
0039 Standard_EXPORT void SetTolOpenDomain(const double aT);
0040
0041 Standard_EXPORT double TolOpenDomain() const;
0042
0043 Standard_EXPORT void SetTolTransition(const double aT);
0044
0045 Standard_EXPORT double TolTransition() const;
0046
0047 Standard_EXPORT void SetTol3D(const double aT);
0048
0049 Standard_EXPORT double Tol3D() const;
0050
0051
0052
0053 Standard_EXPORT void MakeWLine(const occ::handle<IntPatch_ALine>& aline,
0054 NCollection_Sequence<occ::handle<IntPatch_Line>>& theLines) const;
0055
0056
0057
0058 Standard_EXPORT void MakeWLine(const occ::handle<IntPatch_ALine>& aline,
0059 const double paraminf,
0060 const double paramsup,
0061 NCollection_Sequence<occ::handle<IntPatch_Line>>& theLines) const;
0062
0063 protected:
0064
0065
0066
0067
0068
0069
0070
0071 Standard_EXPORT bool StepComputing(const occ::handle<IntPatch_ALine>& theALine,
0072 const IntSurf_PntOn2S& thePOn2S,
0073 const double theLastParOfAline,
0074 const double theCurParam,
0075 const double theTgMagnitude,
0076 const double theStepMin,
0077 const double theStepMax,
0078 const double theMaxDeflection,
0079 double& theStep) const;
0080
0081
0082
0083
0084
0085 Standard_EXPORT int CheckDeflection(const gp_XYZ& theMidPt, const double theMaxDeflection) const;
0086
0087
0088
0089
0090
0091 Standard_EXPORT double GetSectionRadius(const gp_Pnt& thePnt3d) const;
0092
0093
0094
0095
0096
0097 Standard_EXPORT void CorrectEndPoint(occ::handle<IntSurf_LineOn2S>& theLine,
0098 const int theIndex) const;
0099
0100 private:
0101 occ::handle<Adaptor3d_Surface> myS1;
0102 occ::handle<Adaptor3d_Surface> myS2;
0103 IntSurf_Quadric myQuad1;
0104 IntSurf_Quadric myQuad2;
0105
0106
0107
0108
0109 int myNbPointsInWline;
0110 double myTolOpenDomain;
0111 double myTolTransition;
0112 double myTol3D;
0113 };
0114
0115 #endif