[vtkusers] copy points from vtkboxwidget
lordchaos666 at arcor.de
lordchaos666 at arcor.de
Sun Feb 5 15:18:01 EST 2006
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
More information about the vtkusers
mailing list