[vtkusers] "trade" vtkPoints between actors
Jeff Lee
jlee1549 at gmail.com
Tue Aug 6 18:11:13 EDT 2013
Not sure. Perhaps actor->update?
On Tuesday, August 6, 2013, Renil wrote:
> Thank you for the input.
>
> I saw the examples, and before the sphereSource initialization I added:
>
> vtkSmartPointer<vtkVertex> sphere1 =
> vtkSmartPointer<vtkVertex>::New();
> sphere1->GetPointIds()->SetId(0, 0);
> vtkSmartPointer<vtkVertex> sphere2 =
> vtkSmartPointer<vtkVertex>::New();
> sphere2->GetPointIds()->SetId(1, 1);
> vtkSmartPointer<vtkVertex> sphere3 =
> vtkSmartPointer<vtkVertex>::New();
> sphere3->GetPointIds()->SetId(2, 2);
> vtkSmartPointer<vtkVertex> sphere4 =
> vtkSmartPointer<vtkVertex>::New();
> sphere4->GetPointIds()->SetId(3, 3);
>
> vtkSmartPointer<vtkCellArray> spheresArray =
> vtkSmartPointer<vtkCellArray>::New();
> spheresArray->InsertNextCell(sphere1);
> spheresArray->InsertNextCell(sphere2);
> spheresArray->InsertNextCell(sphere3);
> spheresArray->InsertNextCell(sphere4);
>
> vtkSmartPointer<vtkPolyData> polydata =
> vtkSmartPointer<vtkPolyData>::New();
> polydata->SetPoints(points);
> polydata->SetVerts(spheresArray);
>
> Is the sphereSource not letting me delete the cells?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/trade-vtkPoints-between-actors-tp5722498p5722529.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130806/f42de939/attachment.htm>
More information about the vtkusers
mailing list