0022922: Clean up warnings on uninitialized / unused variables
[occt.git] / src / TopOpeBRep / TopOpeBRep_FaceEdgeFiller_DEB.cxx
CommitLineData
7fd59977 1// File: TopOpeBRep_FaceEdgeFiller_DEB.cxx
2// Created: Fri Jun 16 16:00:24 1995
3// Author: Jean Yves LEBEY
4// <jyl@meteox>
5
6#ifdef DEB
7
8#include <TCollection_AsciiString.hxx>
9#include <TopOpeBRep_FaceEdgeIntersector.hxx>
10#include <TopOpeBRepDS_DataStructure.hxx>
11#include <TopOpeBRepDS.hxx>
12#include <TopOpeBRepDS_Transition.hxx>
13#include <TopoDS_Shape.hxx>
14#include <TopAbs.hxx>
15#include <TopAbs_State.hxx>
16#include <TopAbs_Orientation.hxx>
17#include <gp_Pnt.hxx>
18#include <gp_Pnt2d.hxx>
19
20//------------------------------------------------------------------
21void FEINT_DUMPPOINTS(TopOpeBRep_FaceEdgeIntersector& FEINT,
22 const TopOpeBRepDS_DataStructure& BDS)
23{
24 FEINT.InitPoint();
25 if ( ! FEINT.MorePoint() ) return;
26
27 cout<<endl;
28 cout<<"---------- F/E : "<<FEINT.NbPoints()<<" p ";
29 cout<<endl;
30
31 const TopoDS_Shape& FF = FEINT.Shape(1);
32 const TopoDS_Shape& EE = FEINT.Shape(2);
33
34 Standard_Integer FFindex = BDS.Shape(FF);
35 Standard_Integer EEindex = BDS.Shape(EE);
36
37 TopAbs_Orientation FFori = FF.Orientation();
38 TopAbs_Orientation EEori = EE.Orientation();
39 cout<<"FF = "<<FFindex<<" ";TopAbs::Print(FFori,cout);
40 cout<<", ";
41 cout<<"EE = "<<EEindex<<" ";TopAbs::Print(EEori,cout);
42 cout<<endl;
43
44 Standard_Integer ip = 1;
45 for (; FEINT.MorePoint(); FEINT.NextPoint(), ip++ ) {
46 gp_Pnt2d pUV; FEINT.UVPoint(pUV);
47 TopAbs_State sta = FEINT.State();
48 Standard_Real parE = FEINT.Parameter();
49
50 TopOpeBRepDS_Transition T1,T2;
51 T1 = FEINT.Transition(1,EEori); // EEori bidon
52 T2 = FEINT.Transition(2,FFori);
53
54 TopoDS_Vertex V1;
55 Standard_Boolean isvertexF = FEINT.IsVertex(1,V1);
56 TopoDS_Vertex V2;
57 Standard_Boolean isvertexE = FEINT.IsVertex(2,V2);
7fd59977 58
59 cout<<endl;
60 cout<<"P"<<ip<<" : ";
61 gp_Pnt P3D = FEINT.Value();
62 cout<<"\t"<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<endl;
63
64 cout<<"\t"; if (isvertexF) cout<<"IS VERTEX, ";
65 cout<<"T on "<<FFindex<<" : "; T1.Dump(cout);
66 cout<<" pUV = "<<pUV.X()<<" "<<pUV.Y()<<endl;
67 cout<<" sta = "; TopAbs::Print(sta,cout);cout<<endl;
68
69 cout<<"\t"; if (isvertexE) cout<<"IS VERTEX, ";
70 cout<<"T on "<<EEindex<<" : "; T2.Dump(cout);
71 cout<<" parE = "<<parE<<endl;
72 }
73}
74
75#endif