<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">&nbsp;error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkImageData *' to 'class vtkDataSet *'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
<br>Error executing cl.exe.</div>
<div>&nbsp;</div>
<div>the source code is below:</div>
<div>&nbsp;</div>
<div>&nbsp;surfRe = vtkSurfaceReconstructionFilter::New();<br>&nbsp;surfRe-&gt;SetInput(append1-&gt;GetOutput()); //append1 is a polydata <br>&nbsp;<br>&nbsp;conFilter1 = vtkContourFilter::New();<br>&nbsp;conFilter1-&gt;SetInput(surfRe-&gt;GetOutput());
<br>&nbsp;conFilter1-&gt;SetValue(0,0.0);</div>
<div>&nbsp;</div>
<div>It seems that vtkContourFilter.SetInput &nbsp;does not take vtkImageData as a parameter?</div>
<div>&nbsp;</div>
<div>Any help appreciated.</div>
<div>&nbsp;</div>
<div>berry</div>
<div><br>-- <br>Pang Shengyong <br><a href="mailto:berry_hust@hotmail.com">berry_hust@hotmail.com</a><br>Solidification&nbsp;&nbsp;Simulation Lab, Huazhong Univ. of Sci. &amp; Tech. <br><br>(Tel)+86-27-87541922<br><br>&nbsp;</div>