Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-11 08:46:59

0001 // Created on: 1994-06-24
0002 // Created by: Yves FRICAUD
0003 // Copyright (c) 1994-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 _Bisector_Inter_HeaderFile
0018 #define _Bisector_Inter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IntRes2d_Intersection.hxx>
0025 class Bisector_Bisec;
0026 class IntRes2d_Domain;
0027 class Geom2d_Curve;
0028 class Bisector_BisecCC;
0029 class Geom2d_Line;
0030 
0031 //! Intersection between two <Bisec> from Bisector.
0032 class Bisector_Inter : public IntRes2d_Intersection
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   Standard_EXPORT Bisector_Inter();
0038 
0039   //! Intersection between 2 curves.
0040   //! C1 separates the element A and B.
0041   //! C2 separates the elements C et D.
0042   //! If B an C have the same geometry. <ComunElement>
0043   //! Has to be True.
0044   //! It Permits an optimization of the computation.
0045   Standard_EXPORT Bisector_Inter(const Bisector_Bisec&  C1,
0046                                  const IntRes2d_Domain& D1,
0047                                  const Bisector_Bisec&  C2,
0048                                  const IntRes2d_Domain& D2,
0049                                  const Standard_Real    TolConf,
0050                                  const Standard_Real    Tol,
0051                                  const Standard_Boolean ComunElement);
0052 
0053   //! Intersection between 2 curves.
0054   //! C1 separates the element A and B.
0055   //! C2 separates the elements C et D.
0056   //! If B an C have the same geometry. <ComunElement>
0057   //! Has to be True.
0058   //! It Permits an optimization of the computation.
0059   Standard_EXPORT void Perform(const Bisector_Bisec&  C1,
0060                                const IntRes2d_Domain& D1,
0061                                const Bisector_Bisec&  C2,
0062                                const IntRes2d_Domain& D2,
0063                                const Standard_Real    TolConf,
0064                                const Standard_Real    Tol,
0065                                const Standard_Boolean ComunElement);
0066 
0067 protected:
0068 private:
0069   //! Intersection between 2 curves.
0070   Standard_EXPORT void SinglePerform(const Handle(Geom2d_Curve)& C1,
0071                                      const IntRes2d_Domain&      D1,
0072                                      const Handle(Geom2d_Curve)& C2,
0073                                      const IntRes2d_Domain&      D2,
0074                                      const Standard_Real         TolConf,
0075                                      const Standard_Real         Tol,
0076                                      const Standard_Boolean      ComunElement);
0077 
0078   Standard_EXPORT void NeighbourPerform(const Handle(Bisector_BisecCC)& C1,
0079                                         const IntRes2d_Domain&          D1,
0080                                         const Handle(Bisector_BisecCC)& C2,
0081                                         const IntRes2d_Domain&          D2,
0082                                         const Standard_Real             Tol);
0083 
0084   Standard_EXPORT void TestBound(const Handle(Geom2d_Line)&  C1,
0085                                  const IntRes2d_Domain&      D1,
0086                                  const Handle(Geom2d_Curve)& C2,
0087                                  const IntRes2d_Domain&      D2,
0088                                  const Standard_Real         Tol,
0089                                  const Standard_Boolean      Reverse);
0090 };
0091 
0092 #endif // _Bisector_Inter_HeaderFile