0027067: Avoid use of virtual methods for implementation of destructors in legacy...
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_ShellFaceClassifier.cxx
old mode 100755 (executable)
new mode 100644 (file)
index c65808a..fd88e2f
@@ -1,37 +1,34 @@
 // Created on: 1993-06-17
 // Created by: Jean Yves LEBEY
 // Copyright (c) 1993-1999 Matra Datavision
-// Copyright (c) 1999-2012 OPEN CASCADE SAS
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
 //
-// The content of this file is subject to the Open CASCADE Technology Public
-// License Version 6.5 (the "License"). You may not use the content of this file
-// except in compliance with the License. Please obtain a copy of the License
-// at http://www.opencascade.org and read it completely before using this file.
+// This file is part of Open CASCADE Technology software library.
 //
-// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
 //
-// The Original Code and all software distributed under the License is
-// distributed on an "AS IS" basis, without warranty of any kind, and the
-// Initial Developer hereby disclaims all such warranties, including without
-// limitation, any warranties of merchantability, fitness for a particular
-// purpose or non-infringement. Please see the License for the specific terms
-// and conditions governing the rights and limitations under the License.
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 
-#include <TopOpeBRepBuild_ShellFaceClassifier.ixx>
-
+#include <BRep_Tool.hxx>
+#include <BRepAdaptor_Surface.hxx>
 #include <Precision.hxx>
+#include <Standard_ProgramError.hxx>
+#include <TopExp_Explorer.hxx>
 #include <TopoDS.hxx>
-#include <TopoDS_Vertex.hxx>
 #include <TopoDS_Face.hxx>
+#include <TopoDS_Shape.hxx>
 #include <TopoDS_Shell.hxx>
-#include <TopExp_Explorer.hxx>
-#include <BRep_Tool.hxx>
-#include <Standard_ProgramError.hxx>
-#include <BRepAdaptor_Surface.hxx>
+#include <TopoDS_Vertex.hxx>
+#include <TopOpeBRepBuild_BlockBuilder.hxx>
+#include <TopOpeBRepBuild_ShellFaceClassifier.hxx>
 
-#ifdef DEB
+#ifdef OCCT_DEBUG
 extern Standard_Boolean TopOpeBRepBuild_GettraceCHK();
 #endif
 
@@ -65,7 +62,7 @@ void TopOpeBRepBuild_ShellFaceClassifier::Clear()
 TopAbs_State  TopOpeBRepBuild_ShellFaceClassifier::CompareShapes
 (const TopoDS_Shape& B1, const TopoDS_Shape& B2)
 {
-#ifdef DEB
+#ifdef OCCT_DEBUG
 //  const TopAbs_ShapeEnum t1 = B1.ShapeType();
 //  const TopAbs_ShapeEnum t2 = B2.ShapeType();
 #endif
@@ -87,7 +84,7 @@ TopAbs_State  TopOpeBRepBuild_ShellFaceClassifier::CompareShapes
 TopAbs_State  TopOpeBRepBuild_ShellFaceClassifier::CompareElementToShape
 (const TopoDS_Shape& F, const TopoDS_Shape& SHE)
 {
-#ifdef DEB
+#ifdef OCCT_DEBUG
 //  const TopAbs_ShapeEnum t1 = F.ShapeType();
 //  const TopAbs_ShapeEnum t2 = SHE.ShapeType();
 #endif
@@ -108,7 +105,7 @@ TopAbs_State  TopOpeBRepBuild_ShellFaceClassifier::CompareElementToShape
 
 void  TopOpeBRepBuild_ShellFaceClassifier::ResetShape(const TopoDS_Shape& SHE)
 {
-#ifdef DEB
+#ifdef OCCT_DEBUG
 //  const TopAbs_ShapeEnum t1 = SHE.ShapeType();
 #endif
 
@@ -156,7 +153,7 @@ void  TopOpeBRepBuild_ShellFaceClassifier::ResetElement(const TopoDS_Shape& F)
 
 Standard_Boolean TopOpeBRepBuild_ShellFaceClassifier::CompareElement(const TopoDS_Shape& F)
 {
-#ifdef DEB
+#ifdef OCCT_DEBUG
 //  const TopAbs_ShapeEnum t = F.ShapeType();
 #endif
   Standard_Boolean bRet = Standard_True;
@@ -192,7 +189,7 @@ Standard_Boolean TopOpeBRepBuild_ShellFaceClassifier::CompareElement(const TopoD
   return bRet;
 }
 
-#ifdef DEB
+#ifdef OCCT_DEBUG
 #include <BRepTools.hxx>
 #include <BRep_Builder.hxx>
 #include <TCollection_AsciiString.hxx>
@@ -209,7 +206,7 @@ TopAbs_State TopOpeBRepBuild_ShellFaceClassifier::State()
   TopAbs_State state;
   Standard_Real tol3d = Precision::Confusion();
 
-#ifdef DEB
+#ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceCHK()) {
     STATIC_ishell++;
     TCollection_AsciiString home("/home/wb/mdl/gti/prod/TTOPOPE/src/test/data/");