[vtkusers] array to structured points

verena kinder verena.kinder at web.de
Wed Apr 20 10:50:33 EDT 2005


Hello!

I want the pass my array data into in structured point.
All I could find was: 
	vtkUnsignedIntArray *array =vtkUnsignedIntArray::New();
 	...	
	array->SetArray(data,w*h*d,1);
 	vtkStructuredPoints * str =vtkStructuredPoints ::New();
	str->SetScalarType(VTK_UNSIGNED_INT);
 	str->GetPointData()->SetScalars(array);
 	str->SetDimensions(w,h,d);
 	str->SetScalarType(VTK_UNSIGNED_INT);
 	str->SetSpacing(1.0,1.0,1.0);
 	str->SetOrigin(0.0,0.0,0.0);
....

This is an example of a book, but using vtk 2.0.
How can I do this under a later version like vtk4.2.

Thanks for help

Verena
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193




More information about the vtkusers mailing list