[vtkusers] Is ‘vtkPolyData’ can conert to ‘vtkDataSet’?(VC6)

Savage sqsavage at tom.com
Mon Nov 1 00:46:23 EST 2004


Hi,all.

I an trying the example ‘AnnotePick’ using VC6. An error occurred and I have no idea to correct it:
cone = vtkConeSource::New();
	glyph = vtkGlyph3D::New();	
	glyph->SetInput( sphere->GetOutput() );

VC6 told me:
F:\VTKLearning\TryVTK\CXX\myAnnotePick\MyAnnotePick.cpp(29) : error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkPolyData *' to 'class vtkDataSet *'

What’s wrong?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041101/cfd97b6f/attachment.htm>


More information about the vtkusers mailing list