[vtkusers] about vtkContourFilter.SetInput

berry lua.byhh at gmail.com
Wed Mar 1 08:46:27 EST 2006


Hi, all
I am using vtk 4.2 and Visual C++ 6.0 to compile the reconstructsurface
example (originally written in tcl , I modified in C++)
but I get one errors :

 error C2664: 'SetInput' : cannot convert parameter 1 from 'class
vtkImageData *' to 'class vtkDataSet *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

the source code is below:

 surfRe = vtkSurfaceReconstructionFilter::New();
 surfRe->SetInput(append1->GetOutput()); //append1 is a polydata

 conFilter1 = vtkContourFilter::New();
 conFilter1->SetInput(surfRe->GetOutput());
 conFilter1->SetValue(0,0.0);

It seems that vtkContourFilter.SetInput  does not take vtkImageData as a
parameter?

Any help appreciated.

berry

--
Pang Shengyong
berry_hust at hotmail.com
Solidification  Simulation Lab, Huazhong Univ. of Sci. & Tech.

(Tel)+86-27-87541922
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060301/4594b409/attachment.htm>


More information about the vtkusers mailing list