1 // Created on: 1992-02-18
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HLRAlgo_PolyAlgo_HeaderFile
18 #define _HLRAlgo_PolyAlgo_HeaderFile
20 #include <HLRAlgo_PolyData.hxx>
22 #include <Standard.hxx>
23 #include <Standard_Type.hxx>
25 #include <TColStd_HArray1OfTransient.hxx>
26 #include <Standard_Real.hxx>
27 #include <HLRAlgo_ListIteratorOfListOfBPoint.hxx>
28 #include <Standard_Integer.hxx>
29 #include <Standard_Boolean.hxx>
30 #include <MMgt_TShared.hxx>
31 #include <TColStd_Array1OfTransient.hxx>
33 class HLRAlgo_EdgeStatus;
36 class HLRAlgo_PolyAlgo;
37 DEFINE_STANDARD_HANDLE(HLRAlgo_PolyAlgo, MMgt_TShared)
39 //! to remove Hidden lines on Triangulations.
40 class HLRAlgo_PolyAlgo : public MMgt_TShared
46 Standard_EXPORT HLRAlgo_PolyAlgo();
48 Standard_EXPORT void Init (const Handle(TColStd_HArray1OfTransient)& HShell);
50 TColStd_Array1OfTransient& PolyShell() const;
52 Standard_EXPORT void Clear();
54 //! Prepare all the data to process the algo.
55 Standard_EXPORT void Update();
59 Standard_Boolean MoreHide() const;
61 Standard_EXPORT void NextHide();
63 //! process hiding between <Pt1> and <Pt2>.
64 Standard_EXPORT HLRAlgo_BiPoint::PointsT& Hide (HLRAlgo_EdgeStatus& status, Standard_Integer& Index, Standard_Boolean& reg1, Standard_Boolean& regn, Standard_Boolean& outl, Standard_Boolean& intl);
68 Standard_Boolean MoreShow() const;
70 Standard_EXPORT void NextShow();
72 //! process hiding between <Pt1> and <Pt2>.
73 Standard_EXPORT HLRAlgo_BiPoint::PointsT& Show (Standard_Integer& Index, Standard_Boolean& reg1, Standard_Boolean& regn, Standard_Boolean& outl, Standard_Boolean& intl);
78 DEFINE_STANDARD_RTTIEXT(HLRAlgo_PolyAlgo,MMgt_TShared)
88 Handle(TColStd_HArray1OfTransient) myHShell;
89 HLRAlgo_PolyData::Triangle myTriangle;
90 HLRAlgo_ListIteratorOfListOfBPoint mySegListIt;
91 Standard_Integer myNbrShell;
92 Standard_Integer myCurShell;
93 Standard_Boolean myFound;
99 #include <HLRAlgo_PolyAlgo.lxx>
105 #endif // _HLRAlgo_PolyAlgo_HeaderFile