Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-02 09:14:20

0001 // Created on: 1998-10-29
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1998-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 _TopOpeBRep_Hctxff2d_HeaderFile
0018 #define _TopOpeBRep_Hctxff2d_HeaderFile
0019 
0020 #include <BRepAdaptor_Surface.hxx>
0021 #include <GeomAbs_SurfaceType.hxx>
0022 #include <TopoDS_Face.hxx>
0023 
0024 class TopOpeBRep_Hctxff2d : public Standard_Transient
0025 {
0026 
0027 public:
0028   Standard_EXPORT TopOpeBRep_Hctxff2d();
0029 
0030   Standard_EXPORT void SetFaces(const TopoDS_Face& F1, const TopoDS_Face& F2);
0031 
0032   Standard_EXPORT void SetHSurfaces(const occ::handle<BRepAdaptor_Surface>& S1,
0033                                     const occ::handle<BRepAdaptor_Surface>& S2);
0034 
0035   Standard_EXPORT void SetTolerances(const double Tol1, const double Tol2);
0036 
0037   Standard_EXPORT void GetTolerances(double& Tol1, double& Tol2) const;
0038 
0039   Standard_EXPORT double GetMaxTolerance() const;
0040 
0041   Standard_EXPORT const TopoDS_Face& Face(const int I) const;
0042 
0043   Standard_EXPORT occ::handle<BRepAdaptor_Surface> HSurface(const int I) const;
0044 
0045   Standard_EXPORT bool SurfacesSameOriented() const;
0046 
0047   Standard_EXPORT bool FacesSameOriented() const;
0048 
0049   Standard_EXPORT bool FaceSameOrientedWithRef(const int I) const;
0050 
0051   DEFINE_STANDARD_RTTIEXT(TopOpeBRep_Hctxff2d, Standard_Transient)
0052 
0053 private:
0054   Standard_EXPORT void SetHSurfacesPrivate();
0055 
0056   TopoDS_Face                      myFace1;
0057   occ::handle<BRepAdaptor_Surface> mySurface1;
0058   GeomAbs_SurfaceType              mySurfaceType1;
0059   bool                             myf1surf1F_sameoriented;
0060   TopoDS_Face                      myFace2;
0061   occ::handle<BRepAdaptor_Surface> mySurface2;
0062   GeomAbs_SurfaceType              mySurfaceType2;
0063   bool                             myf2surf1F_sameoriented;
0064   bool                             mySurfacesSameOriented;
0065   bool                             myFacesSameOriented;
0066   double                           myTol1;
0067   double                           myTol2;
0068 };
0069 
0070 #endif // _TopOpeBRep_Hctxff2d_HeaderFile