Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-19 08:22:02

0001 // Created on: 1992-03-04
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 _IntCurve_IntImpConicParConic_HeaderFile
0018 #define _IntCurve_IntImpConicParConic_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IntRes2d_Intersection.hxx>
0025 #include <TColStd_Array1OfReal.hxx>
0026 class Standard_ConstructionError;
0027 class IntCurve_IConicTool;
0028 class IntCurve_PConic;
0029 class IntCurve_PConicTool;
0030 class IntCurve_ProjectOnPConicTool;
0031 class IntCurve_MyImpParToolOfIntImpConicParConic;
0032 class IntRes2d_Domain;
0033 class gp_Pnt2d;
0034 
0035 class IntCurve_IntImpConicParConic : public IntRes2d_Intersection
0036 {
0037 public:
0038   DEFINE_STANDARD_ALLOC
0039 
0040   //! Empty constructor.
0041   Standard_EXPORT IntCurve_IntImpConicParConic();
0042 
0043   //! Intersection between an implicit curve and
0044   //! a parametrised curve.
0045   //! The exception ConstructionError is raised if the domain
0046   //! of the parametrised curve does not verify HasFirstPoint
0047   //! and HasLastPoint return True.
0048   Standard_EXPORT IntCurve_IntImpConicParConic(const IntCurve_IConicTool& ITool,
0049                                                const IntRes2d_Domain&     Dom1,
0050                                                const IntCurve_PConic&     PCurve,
0051                                                const IntRes2d_Domain&     Dom2,
0052                                                const Standard_Real        TolConf,
0053                                                const Standard_Real        Tol);
0054 
0055   //! Intersection between an implicit curve and
0056   //! a parametrised curve.
0057   //! The exception ConstructionError is raised if the domain
0058   //! of the parametrised curve does not verify HasFirstPoint
0059   //! and HasLastPoint return True.
0060   Standard_EXPORT void Perform(const IntCurve_IConicTool& ITool,
0061                                const IntRes2d_Domain&     Dom1,
0062                                const IntCurve_PConic&     PCurve,
0063                                const IntRes2d_Domain&     Dom2,
0064                                const Standard_Real        TolConf,
0065                                const Standard_Real        Tol);
0066 
0067   Standard_EXPORT Standard_Real FindU(const Standard_Real        parameter,
0068                                       gp_Pnt2d&                  point,
0069                                       const IntCurve_PConic&     TheParCurev,
0070                                       const IntCurve_IConicTool& TheImpTool) const;
0071 
0072   Standard_EXPORT Standard_Real FindV(const Standard_Real        parameter,
0073                                       gp_Pnt2d&                  point,
0074                                       const IntCurve_IConicTool& TheImpTool,
0075                                       const IntCurve_PConic&     ParCurve,
0076                                       const IntRes2d_Domain&     TheParCurveDomain,
0077                                       const Standard_Real        V0,
0078                                       const Standard_Real        V1,
0079                                       const Standard_Real        Tolerance) const;
0080 
0081   Standard_EXPORT void And_Domaine_Objet1_Intersections(const IntCurve_IConicTool& TheImpTool,
0082                                                         const IntCurve_PConic&     TheParCurve,
0083                                                         const IntRes2d_Domain& TheImpCurveDomain,
0084                                                         const IntRes2d_Domain& TheParCurveDomain,
0085                                                         Standard_Integer&      NbResultats,
0086                                                         TColStd_Array1OfReal&  Inter2_And_Domain2,
0087                                                         TColStd_Array1OfReal&  Inter1,
0088                                                         TColStd_Array1OfReal&  Resultat1,
0089                                                         TColStd_Array1OfReal&  Resultat2,
0090                                                         const Standard_Real    EpsNul) const;
0091 
0092 protected:
0093 private:
0094 };
0095 
0096 #endif // _IntCurve_IntImpConicParConic_HeaderFile