[vtkusers] convert vtkDataObject to vtkDataSet

Natalie Happenhofer nataliehapp at hotmail.com
Thu May 14 04:49:23 EDT 2009


Hi!
I´d like to convert a vtkDataObject to a vtkDataSet. As vtkDataObject is a superclass for vtkDataSet, I tried

vtkDataSet* A = vtkDataSet::SafeDownCast(B);

where B is a vtkDataObject, but I compiling I get the error 

" error: invalid conversion from 'vtkDataObject*' to 'vtkDataSet*' "

Looking in the documentation, there seems to be a class called "vtkDataObjectToDataSet", which seems to be exactly what I want, but I don´t find any documentation on it or any advice how to use it. 

thx for help,
Natalie Happenhofer

_________________________________________________________________
¡Invita a todos tus amigos de una sola vez! Pruébalo ahora
http://www.microsoft.com/latam/windows/windowslive/products/social-network-connector.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090514/e1987842/attachment.htm>


More information about the vtkusers mailing list