Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:01

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 
0032 //! Intersection between two <Bisec> from Bisector.
0033 class Bisector_Inter  : public IntRes2d_Intersection
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   Standard_EXPORT Bisector_Inter();
0041   
0042   //! Intersection between 2 curves.
0043   //! C1 separates the element A and B.
0044   //! C2 separates the elements C et D.
0045   //! If B an C have the same geometry. <ComunElement>
0046   //! Has to be True.
0047   //! It Permits an optimiztion of the computation.
0048   Standard_EXPORT Bisector_Inter(const Bisector_Bisec& C1, const IntRes2d_Domain& D1, const Bisector_Bisec& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol, const Standard_Boolean ComunElement);
0049   
0050   //! Intersection between 2 curves.
0051   //! C1 separates the element A and B.
0052   //! C2 separates the elements C et D.
0053   //! If B an C have the same geometry. <ComunElement>
0054   //! Has to be True.
0055   //! It Permits an optimiztion of the computation.
0056   Standard_EXPORT void Perform (const Bisector_Bisec& C1, const IntRes2d_Domain& D1, const Bisector_Bisec& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol, const Standard_Boolean ComunElement);
0057 
0058 
0059 
0060 
0061 protected:
0062 
0063 
0064 
0065 
0066 
0067 private:
0068 
0069   
0070   //! Intersection between 2 curves.
0071   Standard_EXPORT void SinglePerform (const Handle(Geom2d_Curve)& C1, const IntRes2d_Domain& D1, const Handle(Geom2d_Curve)& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol, const Standard_Boolean ComunElement);
0072   
0073   Standard_EXPORT void NeighbourPerform (const Handle(Bisector_BisecCC)& C1, const IntRes2d_Domain& D1, const Handle(Bisector_BisecCC)& C2, const IntRes2d_Domain& D2, const Standard_Real Tol);
0074   
0075   Standard_EXPORT void TestBound (const Handle(Geom2d_Line)& C1, const IntRes2d_Domain& D1, const Handle(Geom2d_Curve)& C2, const IntRes2d_Domain& D2, const Standard_Real Tol, const Standard_Boolean Reverse);
0076 
0077 
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _Bisector_Inter_HeaderFile