Thanks, its really logical.<br>I&#39;m to revise the code as you suggest, but came whit the following error:<br><br>&quot; error C2664: &#39;void vtkAlgorithm::SetInputConnection(vtkAlgorithmOutput *)&#39; : cannot convert parameter 1 from &#39;vtkImageData *&#39; to &#39;vtkAlgorithmOutput *&#39;<br>
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast&quot;<br><br>at the line: iso-&gt;SetInputConnection(connector-&gt;GetOutput());<br><br>Thanks!<br><br>Arepi<br>
<br><div class="gmail_quote">2009. március 23. 13:37 Luis Ibanez írta, <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<br>
Thanks for posting your code.<br>
<br>
<br>
                Please replace:<div class="im"><br>
<br>
<br>
 vtkStructuredPointsReader *vreader = vtkStructuredPointsReader::New();<br>
vreader-&gt;SetInputConnection( connector-&gt;GetOutput() );<br>
<br></div><div class="im">
vtkMarchingCubes *iso = vtkMarchingCubes::New();<br>
iso-&gt;SetInputConnection(vreader-&gt;GetOutputPort());<br>
iso-&gt;SetValue( 0, IntesityLevel);<br>
<br>
<br></div>
                   With:<br>
<br>
<br>
vtkMarchingCubes *iso = vtkMarchingCubes::New();<br>
iso-&gt;SetInputConnection( connector-&gt;GetOutput() );<br>
iso-&gt;SetValue( 0, IntesityLevel);<br>
<br>
<br>
<br>
That is:<br>
You don&#39;t need the vtkStructuredPointReader at all<br>
in this pipeline.<br>
<br>
<br>
<br>
  Regards,<br>
<br>
<br>
      Luis<br>
<br>
<br><br></blockquote></div><br>