copy points from vtkboxwidget

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

copy points from vtkboxwidget

lordchaos666
hi all,

i have a problem with the function in vtkboxwidget.
i use the function GetPolyData and i want copy the 15 points into a double variable.
but i dont have any idea how i to do.
Here is a interessing piece of my code:

vtkBoxWidget *boxWidget = vtkBoxWidget::New();
vtkPolyData *points = vtkPolyData::New();
double *point;
point = new double[15];
    boxWidget->SetInteractor(m_pAnotherVTKWindow);
    boxWidget->SetPlaceFactor(1.0);
    boxWidget->SetInput((vtkDataSet *) v16->GetOutput());
    boxWidget->PlaceWidget();
    boxWidget->InsideOutOn();
    boxWidget->GetOutlineProperty()->SetRepresentationToWireframe();
    boxWidget->GetOutlineProperty()->SetAmbient(1.0);
    boxWidget->GetOutlineProperty()->SetAmbientColor(1,1,1);
    boxWidget->GetOutlineProperty()->SetLineWidth(1);
    boxWidget->GetSelectedOutlineProperty()->SetRepresentationToWireframe();
    boxWidget->GetSelectedOutlineProperty()->SetAmbient(1.0);
    boxWidget->GetSelectedOutlineProperty()->SetAmbientColor(1,1,1);
    boxWidget->GetSelectedOutlineProperty()->SetLineWidth(1);
    boxWidget->On();
    boxWidget->GetPolyData(points);
   
Thanks a lot

Thomas
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers