File indexing completed on 2026-09-26 09:03:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_ExtPElS_HeaderFile
0018 #define _Extrema_ExtPElS_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <Extrema_POnSurf.hxx>
0025 class gp_Pnt;
0026 class gp_Cylinder;
0027 class gp_Pln;
0028 class gp_Cone;
0029 class gp_Torus;
0030 class gp_Sphere;
0031
0032
0033
0034
0035 class Extrema_ExtPElS
0036 {
0037 public:
0038 DEFINE_STANDARD_ALLOC
0039
0040 Standard_EXPORT Extrema_ExtPElS();
0041
0042
0043
0044
0045 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Cylinder& S, const double Tol);
0046
0047 Standard_EXPORT void Perform(const gp_Pnt& P, const gp_Cylinder& S, const double Tol);
0048
0049
0050
0051
0052 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Pln& S, const double Tol);
0053
0054 Standard_EXPORT void Perform(const gp_Pnt& P, const gp_Pln& S, const double Tol);
0055
0056
0057
0058
0059
0060 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Cone& S, const double Tol);
0061
0062 Standard_EXPORT void Perform(const gp_Pnt& P, const gp_Cone& S, const double Tol);
0063
0064
0065
0066
0067 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Torus& S, const double Tol);
0068
0069 Standard_EXPORT void Perform(const gp_Pnt& P, const gp_Torus& S, const double Tol);
0070
0071
0072
0073
0074 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Sphere& S, const double Tol);
0075
0076 Standard_EXPORT void Perform(const gp_Pnt& P, const gp_Sphere& S, const double Tol);
0077
0078
0079 Standard_EXPORT bool IsDone() const;
0080
0081
0082 Standard_EXPORT int NbExt() const;
0083
0084
0085 Standard_EXPORT double SquareDistance(const int N) const;
0086
0087
0088 Standard_EXPORT const Extrema_POnSurf& Point(const int N) const;
0089
0090 private:
0091 bool myDone;
0092 int myNbExt;
0093 double mySqDist[4];
0094 Extrema_POnSurf myPoint[4];
0095 };
0096
0097 #endif