@@ -769,37 +769,48 @@ Body::saveVTK(const char* filename) const
769769void
770770Body::defaultVTK ()
771771{
772+ std::cout << " Body::defaultVTK()" << std::endl;
772773 vtk_body = vtkSmartPointer<vtkPolyData>::New ();
774+ std::cout << " 1" << std::endl;
773775 auto points = vtkSmartPointer<vtkPoints>::New ();
776+ std::cout << " 2" << std::endl;
774777 points->InsertNextPoint (0 , 0 , 0 );
775778 points->InsertNextPoint (1 , 0 , 0 );
776779 points->InsertNextPoint (0 , 1 , 0 );
777780 points->InsertNextPoint (0 , 0 , 1 );
781+ std::cout << " 3" << std::endl;
778782 auto x_axis = vtkSmartPointer<vtkLine>::New ();
779783 x_axis->GetPointIds ()->SetId (0 , 0 );
780784 x_axis->GetPointIds ()->SetId (1 , 1 );
785+ std::cout << " 4" << std::endl;
781786 auto y_axis = vtkSmartPointer<vtkLine>::New ();
782787 y_axis->GetPointIds ()->SetId (0 , 0 );
783788 y_axis->GetPointIds ()->SetId (1 , 2 );
789+ std::cout << " 5" << std::endl;
784790 auto z_axis = vtkSmartPointer<vtkLine>::New ();
785791 z_axis->GetPointIds ()->SetId (0 , 0 );
786792 z_axis->GetPointIds ()->SetId (1 , 3 );
793+ std::cout << " 6" << std::endl;
787794
788795 auto axes = io::vtk_carray (" axis" , 1 , 3 );
789796 axes->SetTuple1 (0 , ' x' );
790797 axes->SetTuple1 (1 , ' y' );
791798 axes->SetTuple1 (2 , ' z' );
799+ std::cout << " 7" << std::endl;
792800
793801 auto cells = vtkSmartPointer<vtkCellArray>::New ();
794802 cells->InsertNextCell (x_axis);
795803 cells->InsertNextCell (y_axis);
796804 cells->InsertNextCell (z_axis);
805+ std::cout << " 8" << std::endl;
797806
798807 vtk_body->SetPoints (points);
799808 vtk_body->SetLines (cells);
809+ std::cout << " 9" << std::endl;
800810
801811 vtk_body->GetCellData ()->AddArray (axes);
802812 vtk_body->GetCellData ()->SetActiveScalars (" axis" );
813+ std::cout << " 10" << std::endl;
803814}
804815#endif
805816
0 commit comments