File indexing completed on 2025-01-18 10:03:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_ExtPC_HeaderFile
0018 #define _Extrema_ExtPC_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt.hxx>
0024 #include <Extrema_ExtPElC.hxx>
0025 #include <Extrema_EPCOfExtPC.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <GeomAbs_CurveType.hxx>
0028 #include <TColStd_SequenceOfBoolean.hxx>
0029 #include <TColStd_SequenceOfReal.hxx>
0030 class StdFail_NotDone;
0031 class Standard_OutOfRange;
0032 class Standard_TypeMismatch;
0033 class Adaptor3d_Curve;
0034 class Extrema_CurveTool;
0035 class Extrema_ExtPElC;
0036 class gp_Pnt;
0037 class gp_Vec;
0038 class Extrema_POnCurv;
0039 class Extrema_EPCOfExtPC;
0040 class Extrema_PCFOfEPCOfExtPC;
0041
0042
0043
0044 class Extrema_ExtPC
0045 {
0046 public:
0047
0048 DEFINE_STANDARD_ALLOC
0049
0050
0051 Standard_EXPORT Extrema_ExtPC();
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062 Standard_EXPORT Extrema_ExtPC(const gp_Pnt& P, const Adaptor3d_Curve& C, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real TolF = 1.0e-10);
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072 Standard_EXPORT Extrema_ExtPC(const gp_Pnt& P, const Adaptor3d_Curve& C, const Standard_Real TolF = 1.0e-10);
0073
0074
0075 Standard_EXPORT void Initialize (const Adaptor3d_Curve& C, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real TolF = 1.0e-10);
0076
0077
0078
0079 Standard_EXPORT void Perform (const gp_Pnt& P);
0080
0081
0082 Standard_EXPORT Standard_Boolean IsDone() const;
0083
0084
0085 Standard_EXPORT Standard_Real SquareDistance (const Standard_Integer N) const;
0086
0087
0088 Standard_EXPORT Standard_Integer NbExt() const;
0089
0090
0091
0092 Standard_EXPORT Standard_Boolean IsMin (const Standard_Integer N) const;
0093
0094
0095 Standard_EXPORT const Extrema_POnCurv& Point (const Standard_Integer N) const;
0096
0097
0098
0099
0100
0101
0102 Standard_EXPORT void TrimmedSquareDistances (Standard_Real& dist1, Standard_Real& dist2, gp_Pnt& P1, gp_Pnt& P2) const;
0103
0104
0105
0106
0107 protected:
0108
0109
0110 Standard_EXPORT void IntervalPerform (const gp_Pnt& P);
0111
0112 Standard_EXPORT void AddSol(const Standard_Real theU,
0113 const gp_Pnt& theP,
0114 const Standard_Real theSqDist,
0115 const Standard_Boolean isMin);
0116
0117
0118
0119 private:
0120
0121
0122
0123 Standard_Address myC;
0124 gp_Pnt Pf;
0125 gp_Pnt Pl;
0126 Extrema_ExtPElC myExtPElC;
0127 Extrema_SequenceOfPOnCurv mypoint;
0128 Standard_Boolean mydone;
0129 Standard_Real mydist1;
0130 Standard_Real mydist2;
0131 Extrema_EPCOfExtPC myExtPC;
0132 Standard_Real mytolu;
0133 Standard_Real mytolf;
0134 Standard_Integer mysample;
0135 Standard_Real myintuinf;
0136 Standard_Real myintusup;
0137 Standard_Real myuinf;
0138 Standard_Real myusup;
0139 GeomAbs_CurveType type;
0140 TColStd_SequenceOfBoolean myismin;
0141 TColStd_SequenceOfReal mySqDist;
0142
0143
0144 };
0145
0146
0147
0148
0149
0150
0151
0152 #endif