-
- ///// ******* TO ERASE *******
- //JUST TO TEST
- //
- /*
- vtkConeSource *cone = vtkConeSource::New();
-
- cone->SetResolution(10);
-
- vtkPolyDataMapper *map = vtkPolyDataMapper::New();
- map->SetInput(cone->GetOutput());
-
- vtkActor *act = vtkActor::New();
-
- act->SetMapper(map);
-
- vtkPoints *_pts = vtkPoints::New();
- _pts->SetNumberOfPoints(4);
-
- _pts->SetPoint(0, -100 , -100 , 900 );
- _pts->SetPoint(1, 100 , -100 , 900 );
- _pts->SetPoint(2, 100 , 100 , 900 );
- _pts->SetPoint(3, -100 , 100 , 900 );
-
- vtkCellArray *lines = vtkCellArray::New();
- lines->InsertNextCell(5);
- lines->InsertCellPoint(0);
- lines->InsertCellPoint(1);
- lines->InsertCellPoint(2);
- lines->InsertCellPoint(3);
- lines->InsertCellPoint(0);
-
- vtkPolyData *_pd = vtkPolyData::New();
- _pd->SetPoints( _pts );
- _pd->SetLines( lines );
-
- vtkActor *_pointVtkActor = vtkActor::New();
- vtkPolyDataMapper* _bboxMapper = vtkPolyDataMapper::New();
-
- _bboxMapper->SetInput(_pd);
- _pointVtkActor->SetMapper(_bboxMapper);
-
- getRenderer()->AddActor(_pointVtkActor);
-
-
-
-
- vtkPoints *_pts2 = vtkPoints::New();
- _pts2->SetNumberOfPoints(4);
-
- _pts2->SetPoint(0, -105 , -100 , -50 );
- _pts2->SetPoint(1, 100 , -100 , -50 );
- _pts2->SetPoint(2, 100 , 100 , -50 );
- _pts2->SetPoint(3, -105 , 100 , -50 );
-
- vtkCellArray *lines2 = vtkCellArray::New();
- lines2->InsertNextCell(5);
- lines2->InsertCellPoint(0);
- lines2->InsertCellPoint(1);
- lines2->InsertCellPoint(2);
- lines2->InsertCellPoint(3);
- lines2->InsertCellPoint(0);
-
- vtkPolyData *_pd2 = vtkPolyData::New();
- _pd2->SetPoints( _pts2 );
- _pd2->SetLines( lines2 );
-
- vtkActor *_pointVtkActor2 = vtkActor::New();
- vtkPolyDataMapper* _bboxMapper2 = vtkPolyDataMapper::New();
-
- _bboxMapper2->SetInput(_pd2);
- _pointVtkActor2->SetMapper(_bboxMapper2);
-
- getRenderer()->AddActor(_pointVtkActor2);
-
- */
- // ******* TO ERASE *******
- /////////////////////