This version of vtk was the nightly build from yesterday . The following code was working before without problems . <div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>char *buffer;</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>buffer = _getcwd(NULL,0);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>QString path(buffer);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>QString filename = QFileDialog::getOpenFileName(this,"LoadVTk Files",path, "Txt (*.vtk)");</div>
<div> vtkPolyDataReader *slcreader = vtkPolyDataReader::New();</div><div> slcreader->SetFileName(filename.toStdString().c_str());</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> std::string wq = "image.stl";</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> // wq.replace(wq.size()-3,3,"stl");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> // cout << wq << endl;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> vtkSTLWriter *stlwriter = vtkSTLWriter::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> stlwriter->SetFileName(wq.c_str());</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> stlwriter->SetInputConnection(slcreader->GetOutputPort());</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> stlwriter->Update();</div>
<div><br></div><div>That is all i have in the app . I changed the stlwriter->SetInput to stlwriter->SetInputConnection() because the former function does not link .</div><div><br></div><div><br></div><div><br><div><div class="gmail_quote">
On Wed, Mar 28, 2012 at 2:21 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What version of vtk? Also can you post a small, compilable example<br>
that illustrates the error? Looks like a programming bug on your part.<br>
<div><div class="h5"><br>
On Wed, Mar 28, 2012 at 11:18 AM, Darshan Pai <<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>> wrote:<br>
> I am reading a VTK file and saving it as an STL file .<br>
> My issue is that I am getting this strange error :<br>
> ERROR: In<br>
> O:\qt-everywhere-opensource-src-4.8.0\VTK\Filtering\vtkExecutive.cxx, line<br>
> 377<br>
> vtkStreamingDemandDrivenPipeline (00AC0C00): Attempt to get input<br>
> information vector from input port index 11252952 for algorithm<br>
> vtkSTLWriter(00ACCB50), which has 1 input ports.<br>
><br>
><br>
> This was working fine before . The only change I did from before was I<br>
> compiled VTK with Shared_libs option On.<br>
> Since making dlls. the vtkSTLWriter does not recognize SetInput() either .<br>
><br>
> Regards<br>
> Darshan<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div></div></div>