Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntPatch / IntPatch_PolygoTool.cxx
1 #include <IntPatch_PolygoTool.ixx>
2
3
4
5 void IntPatch_PolygoTool::Dump(const IntPatch_Polygo& L) { 
6   static int num=0;
7   num++; 
8   cout<<"\n#------------- D u m p     B o x 2 d   ("<<num<<")"<<endl;
9   IntPatch_PolygoTool::Bounding(L).Dump();
10   cout<<"\n#-----------------------------------------------"<<endl;
11   
12   Standard_Integer nbs = IntPatch_PolygoTool::NbSegments(L);
13   cout<<"\npol2d "<<num<<" "<<nbs<<" ";
14   cout<<IntPatch_PolygoTool::DeflectionOverEstimation(L)<<endl;
15   
16   for(Standard_Integer i=1;i<=nbs;i++) {
17     gp_Pnt2d P(IntPatch_PolygoTool::BeginOfSeg(L,i));
18     cout<<"pnt2d "<<num<<"  "<< P.X()<<" "<<P.Y()<<endl;
19   }
20   gp_Pnt2d PF(IntPatch_PolygoTool::EndOfSeg(L,nbs));
21   cout<<"pnt2d "<<num<<"  "<< PF.X()<<" "<<PF.Y()<<endl;
22 }
23
24