File indexing completed on 2025-01-18 10:04:10
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
0041
0042 class IntSurf_Quadric
0043 {
0044 public:
0045
0046 DEFINE_STANDARD_ALLOC
0047
0048
0049 Standard_EXPORT IntSurf_Quadric();
0050
0051 Standard_EXPORT IntSurf_Quadric(const gp_Pln& P);
0052
0053 Standard_EXPORT IntSurf_Quadric(const gp_Cylinder& C);
0054
0055 Standard_EXPORT IntSurf_Quadric(const gp_Sphere& S);
0056
0057 Standard_EXPORT IntSurf_Quadric(const gp_Cone& C);
0058
0059 Standard_EXPORT IntSurf_Quadric(const gp_Torus& T);
0060
0061 Standard_EXPORT void SetValue (const gp_Pln& P);
0062
0063 Standard_EXPORT void SetValue (const gp_Cylinder& C);
0064
0065 Standard_EXPORT void SetValue (const gp_Sphere& S);
0066
0067 Standard_EXPORT void SetValue (const gp_Cone& C);
0068
0069 Standard_EXPORT void SetValue (const gp_Torus& T);
0070
0071 Standard_EXPORT Standard_Real Distance (const gp_Pnt& P) const;
0072
0073 Standard_EXPORT gp_Vec Gradient (const gp_Pnt& P) const;
0074
0075 Standard_EXPORT void ValAndGrad (const gp_Pnt& P, Standard_Real& Dist, gp_Vec& Grad) const;
0076
0077 GeomAbs_SurfaceType TypeQuadric() const;
0078
0079 gp_Pln Plane() const;
0080
0081 gp_Sphere Sphere() const;
0082
0083 gp_Cylinder Cylinder() const;
0084
0085 gp_Cone Cone() const;
0086
0087 gp_Torus Torus() const;
0088
0089 Standard_EXPORT gp_Pnt Value (const Standard_Real U, const Standard_Real V) const;
0090
0091 Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const;
0092
0093 Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const;
0094
0095 Standard_EXPORT gp_Vec Normale (const Standard_Real U, const Standard_Real V) const;
0096
0097 Standard_EXPORT void Parameters (const gp_Pnt& P, Standard_Real& U, Standard_Real& V) const;
0098
0099 Standard_EXPORT gp_Vec Normale (const gp_Pnt& P) const;
0100
0101
0102
0103
0104 protected:
0105
0106
0107
0108
0109
0110 private:
0111
0112
0113
0114 gp_Ax3 ax3;
0115 gp_Lin lin;
0116 GeomAbs_SurfaceType typ;
0117 Standard_Real prm1;
0118 Standard_Real prm2;
0119 Standard_Real prm3;
0120 Standard_Real prm4;
0121 Standard_Boolean ax3direc;
0122
0123
0124 };
0125
0126
0127 #include <IntSurf_Quadric.lxx>
0128
0129
0130
0131
0132
0133 #endif