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_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
0036 class Extrema_ExtPElS
0037 {
0038 public:
0039
0040 DEFINE_STANDARD_ALLOC
0041
0042
0043 Standard_EXPORT Extrema_ExtPElS();
0044
0045
0046
0047
0048 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Cylinder& S, const Standard_Real Tol);
0049
0050 Standard_EXPORT void Perform (const gp_Pnt& P, const gp_Cylinder& S, const Standard_Real Tol);
0051
0052
0053
0054
0055 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Pln& S, const Standard_Real Tol);
0056
0057 Standard_EXPORT void Perform (const gp_Pnt& P, const gp_Pln& S, const Standard_Real Tol);
0058
0059
0060
0061
0062
0063 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Cone& S, const Standard_Real Tol);
0064
0065 Standard_EXPORT void Perform (const gp_Pnt& P, const gp_Cone& S, const Standard_Real Tol);
0066
0067
0068
0069
0070 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Torus& S, const Standard_Real Tol);
0071
0072 Standard_EXPORT void Perform (const gp_Pnt& P, const gp_Torus& S, const Standard_Real Tol);
0073
0074
0075
0076
0077 Standard_EXPORT Extrema_ExtPElS(const gp_Pnt& P, const gp_Sphere& S, const Standard_Real Tol);
0078
0079 Standard_EXPORT void Perform (const gp_Pnt& P, const gp_Sphere& S, const Standard_Real Tol);
0080
0081
0082 Standard_EXPORT Standard_Boolean IsDone() const;
0083
0084
0085 Standard_EXPORT Standard_Integer NbExt() const;
0086
0087
0088 Standard_EXPORT Standard_Real SquareDistance (const Standard_Integer N) const;
0089
0090
0091 Standard_EXPORT const Extrema_POnSurf& Point (const Standard_Integer N) const;
0092
0093
0094
0095
0096 protected:
0097
0098
0099
0100
0101
0102 private:
0103
0104
0105
0106 Standard_Boolean myDone;
0107 Standard_Integer myNbExt;
0108 Standard_Real mySqDist[4];
0109 Extrema_POnSurf myPoint[4];
0110
0111
0112 };
0113
0114
0115
0116
0117
0118
0119
0120 #endif