0033040: Coding - get rid of unused headers [Storage to TopOpeBRepTool]
[occt.git] / src / TopOpeBRepTool / TopOpeBRepTool_faulty.cxx
1 // Created on: 1998-11-24
2 // Created by: Xuan PHAM PHU
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <TopOpeBRepTool_2d.hxx>
18 #include <BRep_Tool.hxx>
19
20 #define M_FORWARD(sta)  (sta == TopAbs_FORWARD)
21 #define M_REVERSED(sta) (sta == TopAbs_REVERSED)
22 #define M_INTERNAL(sta) (sta == TopAbs_INTERNAL)
23 #define M_EXTERNAL(sta) (sta == TopAbs_EXTERNAL)
24
25 #ifdef DRAW
26 #include <TopOpeBRepTool_DRAW.hxx>
27 #endif
28
29 #ifdef OCCT_DEBUG
30 extern TopTools_IndexedMapOfShape STATIC_PURGE_mapv;
31 extern TopTools_IndexedMapOfOrientedShape STATIC_PURGE_mapeds;
32 extern Standard_Boolean TopOpeBRepTool_GettracePURGE();
33 void FUN_REINIT()
34 {
35   STATIC_PURGE_mapv.Clear(); STATIC_PURGE_mapeds.Clear();
36 }
37
38 Standard_EXPORT void FUN_tool_tori(const TopAbs_Orientation Or)
39 {
40   switch (Or) {
41   case TopAbs_FORWARD:
42     std::cout<<"FOR";break;
43   case TopAbs_REVERSED:
44     std::cout<<"REV";break;
45   case TopAbs_INTERNAL:
46     std::cout<<"INT";break;
47   case TopAbs_EXTERNAL:
48     std::cout<<"EXT";break;
49   }    
50 }
51 #endif
52
53 Standard_EXPORT void FUN_tool_trace(const Standard_Integer Index)
54 {
55   if (Index == 1) std::cout <<"FORWARD ";
56   if (Index == 2) std::cout <<"REVERSED ";
57 }
58 Standard_EXPORT void FUN_tool_trace(const gp_Pnt2d p2d)
59 {
60   std::cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<std::endl;
61 }