1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 //=======================================================================
18 //=======================================================================
19 inline Standard_Boolean BOPDS_Tools::HasBRep(const TopAbs_ShapeEnum aTi)
21 return (aTi==TopAbs_VERTEX || aTi==TopAbs_EDGE || aTi==TopAbs_FACE);
23 //=======================================================================
24 // function: IsInterfering
26 //=======================================================================
27 inline Standard_Boolean BOPDS_Tools::IsInterfering
28 (const TopAbs_ShapeEnum aTi)
30 return (BOPDS_Tools::HasBRep(aTi) || aTi==TopAbs_SOLID);
32 //=======================================================================
33 //function : TypeToInteger
35 //=======================================================================
36 inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1,
37 const TopAbs_ShapeEnum aType2)
39 Standard_Integer iRet, iT1, iT2, iX;
42 iT1=BOPDS_Tools::TypeToInteger(aType1);
43 iT2=BOPDS_Tools::TypeToInteger(aType2);
88 //=======================================================================
89 //function : TypeToInteger
91 //=======================================================================
92 inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1)
94 Standard_Integer iRet=9;
100 case TopAbs_COMPSOLID: