Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2015-05-07
0002 // Created by: Denis BOGOLEPOV
0003 // Copyright (c) 2015 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _BRepExtrema_ElementFilter_HeaderFile
0017 #define _BRepExtrema_ElementFilter_HeaderFile
0018 
0019 #include <Standard_TypeDef.hxx>
0020 
0021 //! Filtering tool used to detect if two given mesh elements
0022 //! should be tested for overlapping/intersection or not.
0023 struct BRepExtrema_ElementFilter
0024 {
0025   //! Result of filtering function.
0026   enum FilterResult
0027   {
0028     NoCheck,
0029     Overlap,
0030     DoCheck
0031   };
0032 
0033   //! Releases resources of element filter.
0034   virtual ~BRepExtrema_ElementFilter()
0035   {
0036     //
0037   }
0038 
0039   //! Checks if two mesh elements should be tested for overlapping/intersection
0040   //! (used for detection correct/incorrect cases of shared edges and vertices).
0041   virtual FilterResult PreCheckElements (const Standard_Integer /*theIndex1*/,
0042                                          const Standard_Integer /*theIndex2*/)
0043   {
0044     return DoCheck;
0045   }
0046 };
0047 
0048 #endif // _BRepExtrema_ElementFilter_HeaderFile