Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-26 10:23:40

0001 // Created on: 1999-01-04
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_REGUS_HeaderFile
0018 #define _TopOpeBRepTool_REGUS_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TopoDS_Shape.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <TopTools_ShapeMapHasher.hxx>
0026 #include <NCollection_DataMap.hxx>
0027 #include <NCollection_IndexedMap.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <NCollection_Map.hxx>
0030 class TopoDS_Face;
0031 class TopoDS_Edge;
0032 
0033 class TopOpeBRepTool_REGUS
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT TopOpeBRepTool_REGUS();
0039 
0040   Standard_EXPORT void Init(const TopoDS_Shape& S);
0041 
0042   Standard_EXPORT const TopoDS_Shape& S() const;
0043 
0044   Standard_EXPORT bool MapS();
0045 
0046   Standard_EXPORT static bool WireToFace(const TopoDS_Face&                    Fanc,
0047                                          const NCollection_List<TopoDS_Shape>& nWs,
0048                                          NCollection_List<TopoDS_Shape>&       nFs);
0049 
0050   Standard_EXPORT static bool SplitF(const TopoDS_Face&              Fanc,
0051                                      NCollection_List<TopoDS_Shape>& FSplits);
0052 
0053   Standard_EXPORT bool SplitFaces();
0054 
0055   Standard_EXPORT bool REGU();
0056 
0057   Standard_EXPORT void SetFsplits(
0058     NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0059       Fsplits);
0060 
0061   Standard_EXPORT void GetFsplits(
0062     NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0063       Fsplits) const;
0064 
0065   Standard_EXPORT void SetOshNsh(
0066     NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0067       OshNsh);
0068 
0069   Standard_EXPORT void GetOshNsh(
0070     NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0071       OshNsh) const;
0072 
0073   Standard_EXPORT bool InitBlock();
0074 
0075   Standard_EXPORT bool NextinBlock();
0076 
0077   Standard_EXPORT bool NearestF(const TopoDS_Edge&                    e,
0078                                 const NCollection_List<TopoDS_Shape>& lof,
0079                                 TopoDS_Face&                          ffound) const;
0080 
0081 private:
0082   bool hasnewsplits;
0083   NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0084     myFsplits;
0085   NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0086                myOshNsh;
0087   TopoDS_Shape myS;
0088   NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0089     mymapeFsstatic;
0090   NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0091                                                                 mymapeFs;
0092   NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> mymapemult;
0093   int                                                           mynF;
0094   int                                                           myoldnF;
0095   TopoDS_Shape                                                  myf;
0096   NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>        myedstoconnect;
0097   NCollection_List<TopoDS_Shape>                                mylFinBlock;
0098 };
0099 
0100 #endif // _TopOpeBRepTool_REGUS_HeaderFile