1 // Created on: 1995-06-06
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1995-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 _BRepApprox_ThePrmPrmSvSurfacesOfApprox_HeaderFile
18 #define _BRepApprox_ThePrmPrmSvSurfacesOfApprox_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <gp_Pnt2d.hxx>
26 #include <gp_Vec2d.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox.hxx>
30 #include <ApproxInt_SvSurfaces.hxx>
31 #include <Standard_Real.hxx>
32 class BRepAdaptor_Surface;
33 class BRepApprox_SurfaceTool;
34 class BRepApprox_ApproxLine;
35 class BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox;
36 class BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox;
43 class BRepApprox_ThePrmPrmSvSurfacesOfApprox : public ApproxInt_SvSurfaces
50 Standard_EXPORT BRepApprox_ThePrmPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& Surf1, const BRepAdaptor_Surface& Surf2);
52 //! returns True if Tg,Tguv1 Tguv2 can be computed.
53 Standard_EXPORT Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, Standard_Real& u2, Standard_Real& v2, gp_Pnt& Pt, gp_Vec& Tg, gp_Vec2d& Tguv1, gp_Vec2d& Tguv2);
55 Standard_EXPORT void Pnt (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Pnt& P);
57 Standard_EXPORT Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec& Tg);
59 Standard_EXPORT Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
61 Standard_EXPORT Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
82 Standard_Boolean MyIsTangent;
83 Standard_Boolean MyHasBeenComputed;
84 gp_Pnt2d MyParOnS1bis;
85 gp_Pnt2d MyParOnS2bis;
90 Standard_Boolean MyIsTangentbis;
91 Standard_Boolean MyHasBeenComputedbis;
92 BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox MyIntersectionOn2S;
103 #endif // _BRepApprox_ThePrmPrmSvSurfacesOfApprox_HeaderFile