0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / BRepExtrema / BRepExtrema_ElementFilter.hxx
1 // Created on: 2015-05-07
2 // Created by: Denis BOGOLEPOV
3 // Copyright (c) 2015 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _BRepExtrema_ElementFilter_HeaderFile
17 #define _BRepExtrema_ElementFilter_HeaderFile
18
19 #include <Standard_TypeDef.hxx>
20
21 //! Filtering tool used to detect if two given mesh elements
22 //! should be tested for overlapping/intersection or not.
23 struct BRepExtrema_ElementFilter
24 {
25   //! Result of filtering function.
26   enum FilterResult
27   {
28     NoCheck,
29     Overlap,
30     DoCheck
31   };
32
33   //! Releases resources of element filter.
34   virtual ~BRepExtrema_ElementFilter()
35   {
36     //
37   }
38
39   //! Checks if two mesh elements should be tested for overlapping/intersection
40   //! (used for detection correct/incorrect cases of shared edges and vertices).
41   virtual FilterResult PreCheckElements (const Standard_Integer /*theIndex1*/,
42                                          const Standard_Integer /*theIndex2*/)
43   {
44     return DoCheck;
45   }
46 };
47
48 #endif // _BRepExtrema_ElementFilter_HeaderFile