File indexing completed on 2026-09-21 09:17:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntSurf_Quadric_HeaderFile
0018 #define _IntSurf_Quadric_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Ax3.hxx>
0024 #include <gp_Lin.hxx>
0025 #include <GeomAbs_SurfaceType.hxx>
0026 #include <gp_Pln.hxx>
0027 #include <gp_Sphere.hxx>
0028 #include <gp_Cylinder.hxx>
0029 #include <gp_Cone.hxx>
0030 #include <gp_Torus.hxx>
0031 #include <Standard_Integer.hxx>
0032 class gp_Pln;
0033 class gp_Cylinder;
0034 class gp_Sphere;
0035 class gp_Cone;
0036 class gp_Torus;
0037 class gp_Pnt;
0038 class gp_Vec;
0039
0040 class IntSurf_Quadric
0041 {
0042 public:
0043 DEFINE_STANDARD_ALLOC
0044
0045 Standard_EXPORT IntSurf_Quadric();
0046
0047 Standard_EXPORT IntSurf_Quadric(const gp_Pln& P);
0048
0049 Standard_EXPORT IntSurf_Quadric(const gp_Cylinder& C);
0050
0051 Standard_EXPORT IntSurf_Quadric(const gp_Sphere& S);
0052
0053 Standard_EXPORT IntSurf_Quadric(const gp_Cone& C);
0054
0055 Standard_EXPORT IntSurf_Quadric(const gp_Torus& T);
0056
0057 Standard_EXPORT void SetValue(const gp_Pln& P);
0058
0059 Standard_EXPORT void SetValue(const gp_Cylinder& C);
0060
0061 Standard_EXPORT void SetValue(const gp_Sphere& S);
0062
0063 Standard_EXPORT void SetValue(const gp_Cone& C);
0064
0065 Standard_EXPORT void SetValue(const gp_Torus& T);
0066
0067 Standard_EXPORT double Distance(const gp_Pnt& P) const;
0068
0069 Standard_EXPORT gp_Vec Gradient(const gp_Pnt& P) const;
0070
0071 Standard_EXPORT void ValAndGrad(const gp_Pnt& P, double& Dist, gp_Vec& Grad) const;
0072
0073 GeomAbs_SurfaceType TypeQuadric() const;
0074
0075 gp_Pln Plane() const;
0076
0077 gp_Sphere Sphere() const;
0078
0079 gp_Cylinder Cylinder() const;
0080
0081 gp_Cone Cone() const;
0082
0083 gp_Torus Torus() const;
0084
0085 Standard_EXPORT gp_Pnt Value(const double U, const double V) const;
0086
0087 Standard_EXPORT void D1(const double U,
0088 const double V,
0089 gp_Pnt& P,
0090 gp_Vec& D1U,
0091 gp_Vec& D1V) const;
0092
0093 Standard_EXPORT gp_Vec DN(const double U, const double V, const int Nu, const int Nv) const;
0094
0095 Standard_EXPORT gp_Vec Normale(const double U, const double V) const;
0096
0097 Standard_EXPORT void Parameters(const gp_Pnt& P, double& U, double& V) const;
0098
0099 Standard_EXPORT gp_Vec Normale(const gp_Pnt& P) const;
0100
0101 private:
0102 gp_Ax3 ax3;
0103 gp_Lin lin;
0104 GeomAbs_SurfaceType typ;
0105 double prm1;
0106 double prm2;
0107 double prm3;
0108 double prm4;
0109 bool ax3direc;
0110 };
0111
0112 #include <IntSurf_Quadric.lxx>
0113
0114 #endif