Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:23

0001 // Created on: 1994-10-12
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1994-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_EdgesFiller_HeaderFile
0018 #define _TopOpeBRep_EdgesFiller_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDS_Edge.hxx>
0025 #include <TopoDS_Face.hxx>
0026 #include <TopOpeBRepDS_PDataStructure.hxx>
0027 #include <TopOpeBRep_PEdgesIntersector.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
0030 #include <TopOpeBRepDS_Kind.hxx>
0031 #include <TopOpeBRepDS_Config.hxx>
0032 class TopOpeBRepDS_HDataStructure;
0033 class TopoDS_Shape;
0034 class TopOpeBRep_Point2d;
0035 class TopOpeBRepDS_Transition;
0036 class TopOpeBRepDS_Interference;
0037 
0038 
0039 //! Fills a TopOpeBRepDS_DataStructure with Edge/Edge
0040 //! instersection data described by TopOpeBRep_EdgesIntersector.
0041 class TopOpeBRep_EdgesFiller 
0042 {
0043 public:
0044 
0045   DEFINE_STANDARD_ALLOC
0046 
0047   
0048   Standard_EXPORT TopOpeBRep_EdgesFiller();
0049   
0050   Standard_EXPORT void Insert (const TopoDS_Shape& E1, const TopoDS_Shape& E2, TopOpeBRep_EdgesIntersector& EI, const Handle(TopOpeBRepDS_HDataStructure)& HDS);
0051   
0052   Standard_EXPORT void Face (const Standard_Integer I, const TopoDS_Shape& F);
0053   
0054   Standard_EXPORT const TopoDS_Shape& Face (const Standard_Integer I) const;
0055 
0056 
0057 
0058 
0059 protected:
0060 
0061 
0062 
0063 
0064 
0065 private:
0066 
0067   
0068   Standard_EXPORT Standard_Boolean GetGeometry (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRep_Point2d& P, Standard_Integer& G, TopOpeBRepDS_Kind& K) const;
0069   
0070   Standard_EXPORT Standard_Boolean MakeGeometry (const TopOpeBRep_Point2d& P, Standard_Integer& G, TopOpeBRepDS_Kind& K) const;
0071   
0072   Standard_EXPORT void SetShapeTransition (const TopOpeBRep_Point2d& P, TopOpeBRepDS_Transition& T1, TopOpeBRepDS_Transition& T2) const;
0073   
0074   Standard_EXPORT Handle(TopOpeBRepDS_Interference) StorePI (const TopOpeBRep_Point2d& P, const TopOpeBRepDS_Transition& T, const Standard_Integer EI, const Standard_Integer PI, const Standard_Real p, const Standard_Integer IE);
0075   
0076   Standard_EXPORT Handle(TopOpeBRepDS_Interference) StoreVI (const TopOpeBRep_Point2d& P, const TopOpeBRepDS_Transition& T, const Standard_Integer EI, const Standard_Integer VI, const Standard_Boolean VB, const TopOpeBRepDS_Config C, const Standard_Real p, const Standard_Integer IE);
0077   
0078   Standard_EXPORT Standard_Boolean ToRecompute (const TopOpeBRep_Point2d& P, const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IEmother);
0079   
0080   Standard_EXPORT void StoreRecompute (const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IEmother);
0081   
0082   Standard_EXPORT void RecomputeInterferences (const TopoDS_Edge& E, TopOpeBRepDS_ListOfInterference& LOI);
0083 
0084 
0085   TopoDS_Edge myE1;
0086   TopoDS_Edge myE2;
0087   TopoDS_Face myF1;
0088   TopoDS_Face myF2;
0089   Handle(TopOpeBRepDS_HDataStructure) myHDS;
0090   TopOpeBRepDS_PDataStructure myPDS;
0091   TopOpeBRep_PEdgesIntersector myPEI;
0092   TopOpeBRepDS_ListOfInterference myLI1;
0093   TopOpeBRepDS_ListOfInterference myLI2;
0094 
0095 
0096 };
0097 
0098 
0099 
0100 
0101 
0102 
0103 
0104 #endif // _TopOpeBRep_EdgesFiller_HeaderFile