Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 09:14:45

0001 // Created on: 1993-06-23
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1993-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 _HLRTopoBRep_DSFiller_HeaderFile
0018 #define _HLRTopoBRep_DSFiller_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TopoDS_Shape.hxx>
0024 #include <BRepTopAdaptor_Tool.hxx>
0025 #include <TopTools_ShapeMapHasher.hxx>
0026 #include <NCollection_DataMap.hxx>
0027 #include <Standard_Integer.hxx>
0028 class TopoDS_Shape;
0029 class Contap_Contour;
0030 class HLRTopoBRep_Data;
0031 class TopoDS_Face;
0032 class TopoDS_Vertex;
0033 class Contap_Point;
0034 class TopoDS_Edge;
0035 
0036 //! Provides methods to fill a HLRTopoBRep_Data.
0037 class HLRTopoBRep_DSFiller
0038 {
0039 public:
0040   DEFINE_STANDARD_ALLOC
0041 
0042   //! Stores in <DS> the outlines of <S> using the current
0043   //! outliner and stores the isolines in <DS> using a Hatcher.
0044   Standard_EXPORT static void Insert(
0045     const TopoDS_Shape&                                                              S,
0046     Contap_Contour&                                                                  FO,
0047     HLRTopoBRep_Data&                                                                DS,
0048     NCollection_DataMap<TopoDS_Shape, BRepTopAdaptor_Tool, TopTools_ShapeMapHasher>& MST,
0049     const int                                                                        nbIso);
0050 
0051 private:
0052   //! Stores in <DS> the outlines of <F> using the current
0053   //! outliner.
0054   Standard_EXPORT static void InsertFace(const int          FI,
0055                                          const TopoDS_Face& F,
0056                                          Contap_Contour&    FO,
0057                                          HLRTopoBRep_Data&  DS,
0058                                          const bool         withPCurve);
0059 
0060   //! Make a vertex from an intersection point <P>and
0061   //! store it in the data structure <DS>.
0062   Standard_EXPORT static TopoDS_Vertex MakeVertex(const Contap_Point& P,
0063                                                   const double        tol,
0064                                                   HLRTopoBRep_Data&   DS);
0065 
0066   //! Insert a vertex from an internal intersection
0067   //! point <P> on restriction <E> and store it in the
0068   //! data structure <DS>.
0069   Standard_EXPORT static void InsertVertex(const Contap_Point& P,
0070                                            const double        tol,
0071                                            const TopoDS_Edge&  E,
0072                                            HLRTopoBRep_Data&   DS);
0073 
0074   //! Split all the edges with vertices in the data
0075   //! structure.
0076   Standard_EXPORT static void ProcessEdges(HLRTopoBRep_Data& DS);
0077 };
0078 
0079 #endif // _HLRTopoBRep_DSFiller_HeaderFile