File indexing completed on 2025-01-18 10:04:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntPatch_TheIWalking_HeaderFile
0018 #define _IntPatch_TheIWalking_HeaderFile
0019
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <IntSurf_SequenceOfPathPoint.hxx>
0022 #include <math_Vector.hxx>
0023 #include <IntWalk_VectorOfWalkingData.hxx>
0024 #include <IntWalk_VectorOfInteger.hxx>
0025 #include <IntSurf_PntOn2S.hxx>
0026 #include <gp_Vec.hxx>
0027 #include <gp_Dir2d.hxx>
0028 #include <TColStd_SequenceOfInteger.hxx>
0029 #include <TColStd_DataMapOfIntegerListOfInteger.hxx>
0030 #include <IntPatch_SequenceOfIWLineOfTheIWalking.hxx>
0031 #include <IntSurf_SequenceOfInteriorPoint.hxx>
0032 #include <Standard_Integer.hxx>
0033 #include <TColStd_SequenceOfReal.hxx>
0034 #include <IntWalk_StatusDeflection.hxx>
0035 #include <Bnd_Range.hxx>
0036
0037 class IntSurf_PathPoint;
0038 class IntSurf_PathPointTool;
0039 class IntSurf_InteriorPoint;
0040 class IntSurf_InteriorPointTool;
0041 class Adaptor3d_HSurfaceTool;
0042 class IntPatch_TheSurfFunction;
0043 class IntPatch_TheIWLineOfTheIWalking;
0044 class IntSurf_PntOn2S;
0045 class math_FunctionSetRoot;
0046
0047 class IntPatch_TheIWalking
0048 {
0049 public:
0050
0051 DEFINE_STANDARD_ALLOC
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063 Standard_EXPORT IntPatch_TheIWalking(const Standard_Real Epsilon, const Standard_Real Deflection, const Standard_Real Step,
0064 const Standard_Boolean theToFillHoles = Standard_False);
0065
0066
0067
0068
0069
0070
0071
0072 void SetTolerance (const Standard_Real Epsilon, const Standard_Real Deflection, const Standard_Real Step);
0073
0074
0075
0076
0077 Standard_EXPORT void Perform (const IntSurf_SequenceOfPathPoint& Pnts1, const IntSurf_SequenceOfInteriorPoint& Pnts2, IntPatch_TheSurfFunction& Func, const Handle(Adaptor3d_Surface)& S, const Standard_Boolean Reversed = Standard_False);
0078
0079
0080
0081 Standard_EXPORT void Perform (const IntSurf_SequenceOfPathPoint& Pnts1, IntPatch_TheSurfFunction& Func, const Handle(Adaptor3d_Surface)& S, const Standard_Boolean Reversed = Standard_False);
0082
0083
0084 Standard_Boolean IsDone() const;
0085
0086
0087
0088 Standard_Integer NbLines() const;
0089
0090
0091
0092
0093 const Handle(IntPatch_TheIWLineOfTheIWalking)& Value (const Standard_Integer Index) const;
0094
0095
0096
0097
0098 Standard_Integer NbSinglePnts() const;
0099
0100
0101
0102
0103
0104 const IntSurf_PathPoint& SinglePnt (const Standard_Integer Index) const;
0105
0106
0107
0108
0109 protected:
0110
0111
0112 Standard_EXPORT Standard_Boolean Cadrage (math_Vector& BornInf, math_Vector& BornSup, math_Vector& UVap, Standard_Real& Step, const Standard_Integer StepSign) const;
0113
0114 Standard_EXPORT Standard_Boolean TestArretPassage (const TColStd_SequenceOfReal& Umult, const TColStd_SequenceOfReal& Vmult, IntPatch_TheSurfFunction& Section, math_Vector& UV, Standard_Integer& Irang);
0115
0116 Standard_EXPORT Standard_Boolean TestArretPassage (const TColStd_SequenceOfReal& Umult, const TColStd_SequenceOfReal& Vmult, const math_Vector& UV, const Standard_Integer Index, Standard_Integer& Irang);
0117
0118 Standard_EXPORT Standard_Boolean TestArretAjout (IntPatch_TheSurfFunction& Section, math_Vector& UV, Standard_Integer& Irang, IntSurf_PntOn2S& PSol);
0119
0120 Standard_EXPORT void FillPntsInHoles (IntPatch_TheSurfFunction& Section,
0121 TColStd_SequenceOfInteger& CopySeqAlone,
0122 IntSurf_SequenceOfInteriorPoint& PntsInHoles);
0123
0124 Standard_EXPORT void TestArretCadre (const TColStd_SequenceOfReal& Umult, const TColStd_SequenceOfReal& Vmult, const Handle(IntPatch_TheIWLineOfTheIWalking)& Line, IntPatch_TheSurfFunction& Section, math_Vector& UV, Standard_Integer& Irang);
0125
0126 Standard_EXPORT IntWalk_StatusDeflection TestDeflection (IntPatch_TheSurfFunction& Section, const Standard_Boolean Finished, const math_Vector& UV, const IntWalk_StatusDeflection StatusPrecedent, Standard_Integer& NbDivision, Standard_Real& Step, const Standard_Integer StepSign);
0127
0128 Standard_EXPORT void ComputeOpenLine (const TColStd_SequenceOfReal& Umult, const TColStd_SequenceOfReal& Vmult, const IntSurf_SequenceOfPathPoint& Pnts1, IntPatch_TheSurfFunction& Section, Standard_Boolean& Rajout);
0129
0130 Standard_EXPORT void OpenLine (const Standard_Integer N, const IntSurf_PntOn2S& Psol, const IntSurf_SequenceOfPathPoint& Pnts1, IntPatch_TheSurfFunction& Section, const Handle(IntPatch_TheIWLineOfTheIWalking)& Line);
0131
0132 Standard_EXPORT Standard_Boolean IsValidEndPoint (const Standard_Integer IndOfPoint, const Standard_Integer IndOfLine);
0133
0134 Standard_EXPORT void RemoveTwoEndPoints (const Standard_Integer IndOfPoint);
0135
0136 Standard_EXPORT Standard_Boolean IsPointOnLine (const gp_Pnt2d& theP2d, const Standard_Integer Irang);
0137
0138 Standard_EXPORT void ComputeCloseLine (const TColStd_SequenceOfReal& Umult, const TColStd_SequenceOfReal& Vmult, const IntSurf_SequenceOfPathPoint& Pnts1, const IntSurf_SequenceOfInteriorPoint& Pnts2, IntPatch_TheSurfFunction& Section, Standard_Boolean& Rajout);
0139
0140 Standard_EXPORT void AddPointInCurrentLine (const Standard_Integer N, const IntSurf_PathPoint& PathPnt, const Handle(IntPatch_TheIWLineOfTheIWalking)& CurrentLine) const;
0141
0142 Standard_EXPORT void MakeWalkingPoint (const Standard_Integer Case, const Standard_Real U, const Standard_Real V, IntPatch_TheSurfFunction& Section, IntSurf_PntOn2S& Psol);
0143
0144
0145 Standard_EXPORT void Clear();
0146
0147
0148 Standard_EXPORT Standard_Boolean IsPointOnLine(const IntSurf_PntOn2S& thePOn2S,
0149 const math_Vector& theInfBounds,
0150 const math_Vector& theSupBounds,
0151 math_FunctionSetRoot& theSolver,
0152 IntPatch_TheSurfFunction& theFunc);
0153
0154
0155
0156 private:
0157
0158
0159
0160 Standard_Boolean done;
0161 IntSurf_SequenceOfPathPoint seqSingle;
0162 Standard_Real fleche;
0163 Standard_Real pas;
0164 math_Vector tolerance;
0165 Standard_Real epsilon;
0166 Standard_Boolean reversed;
0167 IntWalk_VectorOfWalkingData wd1;
0168 IntWalk_VectorOfWalkingData wd2;
0169 IntWalk_VectorOfInteger nbMultiplicities;
0170 Bnd_Range mySRangeU;
0171 Bnd_Range mySRangeV;
0172 Standard_Real Um;
0173 Standard_Real UM;
0174 Standard_Real Vm;
0175 Standard_Real VM;
0176 IntSurf_PntOn2S previousPoint;
0177 gp_Vec previousd3d;
0178 gp_Dir2d previousd2d;
0179 TColStd_SequenceOfInteger seqAjout;
0180 TColStd_SequenceOfInteger seqAlone;
0181 TColStd_DataMapOfIntegerListOfInteger PointLineLine;
0182 IntPatch_SequenceOfIWLineOfTheIWalking lines;
0183 Standard_Boolean ToFillHoles;
0184
0185
0186 };
0187
0188 #define ThePointOfPath IntSurf_PathPoint
0189 #define ThePointOfPath_hxx <IntSurf_PathPoint.hxx>
0190 #define ThePointOfPathTool IntSurf_PathPointTool
0191 #define ThePointOfPathTool_hxx <IntSurf_PathPointTool.hxx>
0192 #define ThePOPIterator IntSurf_SequenceOfPathPoint
0193 #define ThePOPIterator_hxx <IntSurf_SequenceOfPathPoint.hxx>
0194 #define ThePointOfLoop IntSurf_InteriorPoint
0195 #define ThePointOfLoop_hxx <IntSurf_InteriorPoint.hxx>
0196 #define ThePointOfLoopTool IntSurf_InteriorPointTool
0197 #define ThePointOfLoopTool_hxx <IntSurf_InteriorPointTool.hxx>
0198 #define ThePOLIterator IntSurf_SequenceOfInteriorPoint
0199 #define ThePOLIterator_hxx <IntSurf_SequenceOfInteriorPoint.hxx>
0200 #define ThePSurface Handle(Adaptor3d_Surface)
0201 #define ThePSurface_hxx <Adaptor3d_Surface.hxx>
0202 #define ThePSurfaceTool Adaptor3d_HSurfaceTool
0203 #define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
0204 #define TheIWFunction IntPatch_TheSurfFunction
0205 #define TheIWFunction_hxx <IntPatch_TheSurfFunction.hxx>
0206 #define IntWalk_TheIWLine IntPatch_TheIWLineOfTheIWalking
0207 #define IntWalk_TheIWLine_hxx <IntPatch_TheIWLineOfTheIWalking.hxx>
0208 #define IntWalk_SequenceOfIWLine IntPatch_SequenceOfIWLineOfTheIWalking
0209 #define IntWalk_SequenceOfIWLine_hxx <IntPatch_SequenceOfIWLineOfTheIWalking.hxx>
0210 #define Handle_IntWalk_TheIWLine Handle(IntPatch_TheIWLineOfTheIWalking)
0211 #define IntWalk_IWalking IntPatch_TheIWalking
0212 #define IntWalk_IWalking_hxx <IntPatch_TheIWalking.hxx>
0213
0214 #include <IntWalk_IWalking.lxx>
0215
0216 #undef ThePointOfPath
0217 #undef ThePointOfPath_hxx
0218 #undef ThePointOfPathTool
0219 #undef ThePointOfPathTool_hxx
0220 #undef ThePOPIterator
0221 #undef ThePOPIterator_hxx
0222 #undef ThePointOfLoop
0223 #undef ThePointOfLoop_hxx
0224 #undef ThePointOfLoopTool
0225 #undef ThePointOfLoopTool_hxx
0226 #undef ThePOLIterator
0227 #undef ThePOLIterator_hxx
0228 #undef ThePSurface
0229 #undef ThePSurface_hxx
0230 #undef ThePSurfaceTool
0231 #undef ThePSurfaceTool_hxx
0232 #undef TheIWFunction
0233 #undef TheIWFunction_hxx
0234 #undef IntWalk_TheIWLine
0235 #undef IntWalk_TheIWLine_hxx
0236 #undef IntWalk_SequenceOfIWLine
0237 #undef IntWalk_SequenceOfIWLine_hxx
0238 #undef Handle_IntWalk_TheIWLine
0239 #undef IntWalk_IWalking
0240 #undef IntWalk_IWalking_hxx
0241
0242
0243
0244
0245 #endif