<div>Hi, all </div>
<div>I am using vtk 4.2 and Visual C++ 6.0 to compile the reconstructsurface example (originally written in tcl , I modified in C++)</div>
<div>but I get one errors : </div>
<div><br clear="all"> error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkImageData *' to 'class vtkDataSet *'<br> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
<br>Error executing cl.exe.</div>
<div> </div>
<div>the source code is below:</div>
<div> </div>
<div> surfRe = vtkSurfaceReconstructionFilter::New();<br> surfRe->SetInput(append1->GetOutput()); //append1 is a polydata <br> <br> conFilter1 = vtkContourFilter::New();<br> conFilter1->SetInput(surfRe->GetOutput());
<br> conFilter1->SetValue(0,0.0);</div>
<div> </div>
<div>It seems that vtkContourFilter.SetInput does not take vtkImageData as a parameter?</div>
<div> </div>
<div>Any help appreciated.</div>
<div> </div>
<div>berry</div>
<div><br>-- <br>Pang Shengyong <br><a href="mailto:berry_hust@hotmail.com">berry_hust@hotmail.com</a><br>Solidification Simulation Lab, Huazhong Univ. of Sci. & Tech. <br><br>(Tel)+86-27-87541922<br><br> </div>