Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 09:21:44

0001 // Created on: 1999-01-13
0002 // Created by: Xuan PHAM PHU
0003 // Copyright (c) 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 _TopOpeBRepTool_CLASSI_HeaderFile
0018 #define _TopOpeBRepTool_CLASSI_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TopoDS_Face.hxx>
0024 #include <TopoDS_Shape.hxx>
0025 #include <Bnd_Box2d.hxx>
0026 #include <NCollection_IndexedDataMap.hxx>
0027 #include <TopOpeBRepTool_face.hxx>
0028 #include <TopTools_ShapeMapHasher.hxx>
0029 #include <NCollection_DataMap.hxx>
0030 #include <Standard_Integer.hxx>
0031 #include <NCollection_List.hxx>
0032 class TopoDS_Shape;
0033 class Bnd_Box2d;
0034 class TopOpeBRepTool_face;
0035 
0036 class TopOpeBRepTool_CLASSI
0037 {
0038 public:
0039   DEFINE_STANDARD_ALLOC
0040 
0041   Standard_EXPORT TopOpeBRepTool_CLASSI();
0042 
0043   Standard_EXPORT void Init2d(const TopoDS_Face& Fref);
0044 
0045   Standard_EXPORT bool HasInit2d() const;
0046 
0047   Standard_EXPORT bool Add2d(const TopoDS_Shape& S);
0048 
0049   Standard_EXPORT bool GetBox2d(const TopoDS_Shape& S, Bnd_Box2d& Box2d);
0050 
0051   Standard_EXPORT int ClassiBnd2d(const TopoDS_Shape& S1,
0052                                   const TopoDS_Shape& S2,
0053                                   const double        tol,
0054                                   const bool          checklarge);
0055 
0056   Standard_EXPORT int Classip2d(const TopoDS_Shape& S1,
0057                                 const TopoDS_Shape& S2,
0058                                 const int           stabnd2d12);
0059 
0060   Standard_EXPORT bool Getface(const TopoDS_Shape& S, TopOpeBRepTool_face& fa) const;
0061 
0062   Standard_EXPORT bool Classilist(
0063     const NCollection_List<TopoDS_Shape>& lS,
0064     NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0065       mapgreasma);
0066 
0067 private:
0068   TopoDS_Face                                                                     myFref;
0069   NCollection_IndexedDataMap<TopoDS_Shape, Bnd_Box2d>                             mymapsbox2d;
0070   NCollection_DataMap<TopoDS_Shape, TopOpeBRepTool_face, TopTools_ShapeMapHasher> mymapsface;
0071 };
0072 
0073 #endif // _TopOpeBRepTool_CLASSI_HeaderFile