Thanks, its really logical.<br>I'm to revise the code as you suggest, but came whit the following error:<br><br>" error C2664: 'void vtkAlgorithm::SetInputConnection(vtkAlgorithmOutput *)' : cannot convert parameter 1 from 'vtkImageData *' to 'vtkAlgorithmOutput *'<br>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"<br><br>at the line: iso->SetInputConnection(connector->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"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></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->SetInputConnection( connector->GetOutput() );<br>
<br></div><div class="im">
vtkMarchingCubes *iso = vtkMarchingCubes::New();<br>
iso->SetInputConnection(vreader->GetOutputPort());<br>
iso->SetValue( 0, IntesityLevel);<br>
<br>
<br></div>
With:<br>
<br>
<br>
vtkMarchingCubes *iso = vtkMarchingCubes::New();<br>
iso->SetInputConnection( connector->GetOutput() );<br>
iso->SetValue( 0, IntesityLevel);<br>
<br>
<br>
<br>
That is:<br>
You don'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>