[vtkusers] "trade" vtkPoints between actors

Renil renilac at gmail.com
Tue Aug 6 17:51:17 EDT 2013


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.



More information about the vtkusers mailing list