Back to home page

EIC code displayed by LXR

 
 

    


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

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 <BRepTopAdaptor_MapOfShapeTool.hxx>
0024 #include <Standard_Integer.hxx>
0025 class TopoDS_Shape;
0026 class Contap_Contour;
0027 class HLRTopoBRep_Data;
0028 class TopoDS_Face;
0029 class TopoDS_Vertex;
0030 class Contap_Point;
0031 class TopoDS_Edge;
0032 
0033 
0034 //! Provides methods  to  fill a HLRTopoBRep_Data.
0035 class HLRTopoBRep_DSFiller 
0036 {
0037 public:
0038 
0039   DEFINE_STANDARD_ALLOC
0040 
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 (const TopoDS_Shape& S, Contap_Contour& FO, HLRTopoBRep_Data& DS, BRepTopAdaptor_MapOfShapeTool& MST, const Standard_Integer nbIso);
0045 
0046 
0047 
0048 
0049 protected:
0050 
0051 
0052 
0053 
0054 
0055 private:
0056 
0057   
0058   //! Stores in <DS> the outlines of  <F> using the current
0059   //! outliner.
0060   Standard_EXPORT static void InsertFace (const Standard_Integer FI, const TopoDS_Face& F, Contap_Contour& FO, HLRTopoBRep_Data& DS, const Standard_Boolean withPCurve);
0061   
0062   //! Make a  vertex  from an intersection  point <P>and
0063   //! store it in the data structure <DS>.
0064   Standard_EXPORT static TopoDS_Vertex MakeVertex (const Contap_Point& P, const Standard_Real tol, 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, const Standard_Real tol, const TopoDS_Edge& E, HLRTopoBRep_Data& DS);
0070   
0071   //! Split all  the edges  with  vertices in   the data
0072   //! structure.
0073   Standard_EXPORT static void ProcessEdges (HLRTopoBRep_Data& DS);
0074 
0075 
0076 
0077 
0078 };
0079 
0080 
0081 
0082 
0083 
0084 
0085 
0086 #endif // _HLRTopoBRep_DSFiller_HeaderFile