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