1 // Created on: 1992-05-06
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IntSurf_PntOn2S_HeaderFile
18 #define _IntSurf_PntOn2S_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Boolean.hxx>
30 //! This class defines the geometric informations
31 //! for an intersection point between 2 surfaces :
32 //! The coordinates ( Pnt from gp ), and two
33 //! parametric coordinates.
41 //! Empty constructor.
42 Standard_EXPORT IntSurf_PntOn2S();
44 //! Sets the value of the point in 3d space.
45 void SetValue (const gp_Pnt& Pt);
47 //! Sets the values of the point in 3d space, and
48 //! in the parametric space of one of the surface.
49 Standard_EXPORT void SetValue (const gp_Pnt& Pt, const Standard_Boolean OnFirst, const Standard_Real U, const Standard_Real V);
51 //! Sets the values of the point in 3d space, and
52 //! in the parametric space of each surface.
53 void SetValue (const gp_Pnt& Pt, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
55 //! Set the values of the point in the parametric
56 //! space of one of the surface.
57 Standard_EXPORT void SetValue (const Standard_Boolean OnFirst, const Standard_Real U, const Standard_Real V);
59 //! Set the values of the point in the parametric
60 //! space of one of the surface.
61 void SetValue (const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
63 //! Returns the point in 3d space.
64 const gp_Pnt& Value() const;
66 //! Returns the parameters of the point on the first surface.
67 void ParametersOnS1 (Standard_Real& U1, Standard_Real& V1) const;
69 //! Returns the parameters of the point on the second surface.
70 void ParametersOnS2 (Standard_Real& U2, Standard_Real& V2) const;
72 //! Returns the parameters of the point on both surfaces.
73 void Parameters (Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2) const;
75 //! Returns TRUE if 2D- and 3D-coordinates of theOterPoint are equal to
76 //! corresponding coordinates of me (with given tolerance).
77 //! If theTol2D == 0.0 we will compare 3D-points only.
78 Standard_EXPORT Standard_Boolean IsSame (const IntSurf_PntOn2S& theOterPoint, const Standard_Real theTol3D = 0.0, const Standard_Real theTol2D = 0.0) const;
103 #include <IntSurf_PntOn2S.lxx>
109 #endif // _IntSurf_PntOn2S_HeaderFile