Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:21:05

0001 // Created on: 1992-03-02
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntImpParGen_HeaderFile
0018 #define _IntImpParGen_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IntRes2d_Position.hxx>
0025 #include <Standard_Real.hxx>
0026 #include <Standard_Boolean.hxx>
0027 class gp_Vec2d;
0028 class IntRes2d_Transition;
0029 class IntRes2d_Domain;
0030 class gp_Pnt2d;
0031 
0032 //! Gives a generic algorithm to intersect Implicit Curves
0033 //! and Bounded Parametric Curves.
0034 //!
0035 //! Level: Internal
0036 //!
0037 //! All the methods of all the classes are Internal.
0038 class IntImpParGen
0039 {
0040 public:
0041   DEFINE_STANDARD_ALLOC
0042 
0043   //! Template class for an implicit curve.
0044   //! Math function, instantiated inside the Intersector.
0045   //! Tool used by the package IntCurve and IntImpParGen
0046   Standard_EXPORT static void DetermineTransition(const IntRes2d_Position Pos1,
0047                                                   gp_Vec2d&               Tan1,
0048                                                   const gp_Vec2d&         Norm1,
0049                                                   IntRes2d_Transition&    Trans1,
0050                                                   const IntRes2d_Position Pos2,
0051                                                   gp_Vec2d&               Tan2,
0052                                                   const gp_Vec2d&         Norm2,
0053                                                   IntRes2d_Transition&    Trans2,
0054                                                   const double            Tol);
0055 
0056   Standard_EXPORT static bool DetermineTransition(const IntRes2d_Position Pos1,
0057                                                   gp_Vec2d&               Tan1,
0058                                                   IntRes2d_Transition&    Trans1,
0059                                                   const IntRes2d_Position Pos2,
0060                                                   gp_Vec2d&               Tan2,
0061                                                   IntRes2d_Transition&    Trans2,
0062                                                   const double            Tol);
0063 
0064   Standard_EXPORT static void DeterminePosition(IntRes2d_Position&     Pos1,
0065                                                 const IntRes2d_Domain& Dom1,
0066                                                 const gp_Pnt2d&        P1,
0067                                                 const double           Tol);
0068 
0069   Standard_EXPORT static double NormalizeOnDomain(double& Par1, const IntRes2d_Domain& Dom1);
0070 };
0071 
0072 #endif // _IntImpParGen_HeaderFile