1 // Created on: 1992-03-02
2 // Created by: Laurent BUCHARD
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 _IntImpParGen_HeaderFile
18 #define _IntImpParGen_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <IntRes2d_Position.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Boolean.hxx>
28 class IntRes2d_Transition;
29 class IntRes2d_Domain;
31 class IntImpParGen_ImpTool;
32 class IntImpParGen_ImpParTool;
33 class IntImpParGen_Intersector;
34 class IntImpParGen_MyImpParTool;
37 //! Gives a generic algorithm to intersect Implicit Curves
38 //! and Bounded Parametric Curves.
42 //! All the methods of all the classes are Internal.
50 //! Template class for an implicit curve.
51 //! Math function, instantiated inside the Intersector.
52 //! Tool used by the package IntCurve and IntImpParGen
53 Standard_EXPORT static void DetermineTransition (const IntRes2d_Position Pos1, gp_Vec2d& Tan1, const gp_Vec2d& Norm1, IntRes2d_Transition& Trans1, const IntRes2d_Position Pos2, gp_Vec2d& Tan2, const gp_Vec2d& Norm2, IntRes2d_Transition& Trans2, const Standard_Real Tol);
55 Standard_EXPORT static Standard_Boolean DetermineTransition (const IntRes2d_Position Pos1, gp_Vec2d& Tan1, IntRes2d_Transition& Trans1, const IntRes2d_Position Pos2, gp_Vec2d& Tan2, IntRes2d_Transition& Trans2, const Standard_Real Tol);
57 Standard_EXPORT static void DeterminePosition (IntRes2d_Position& Pos1, const IntRes2d_Domain& Dom1, const gp_Pnt2d& P1, const Standard_Real Tol);
59 Standard_EXPORT static Standard_Real NormalizeOnDomain (Standard_Real& Par1, const IntRes2d_Domain& Dom1);
75 friend class IntImpParGen_ImpTool;
76 friend class IntImpParGen_ImpParTool;
77 friend class IntImpParGen_Intersector;
78 friend class IntImpParGen_MyImpParTool;
88 #endif // _IntImpParGen_HeaderFile