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"><<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">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 <<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>> wrote:<br>
> This version of vtk was the nightly build from yesterday . The following<br>
> code was working before without problems .<br>
><br>
> char *buffer;<br>
> buffer = _getcwd(NULL,0);<br>
> QString path(buffer);<br>
> QString filename = QFileDialog::getOpenFileName(this,"LoadVTk Files",path,<br>
> "Txt (*.vtk)");<br>
> vtkPolyDataReader *slcreader = vtkPolyDataReader::New();<br>
> slcreader->SetFileName(filename.toStdString().c_str());<br>
><br>
> std::string wq = "image.stl";<br>
> // wq.replace(wq.size()-3,3,"stl");<br>
> // cout << wq << endl;<br>
><br>
> vtkSTLWriter *stlwriter = vtkSTLWriter::New();<br>
> stlwriter->SetFileName(wq.c_str());<br>
> stlwriter->SetInputConnection(slcreader->GetOutputPort());<br>
> stlwriter->Update();<br>
><br>
> That is all i have in the app . I changed the stlwriter->SetInput to<br>
> stlwriter->SetInputConnection() because the former function does not link .<br>
><br>
><br>
><br>
> On Wed, Mar 28, 2012 at 2:21 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
>><br>
>> On Wed, Mar 28, 2012 at 11:18 AM, Darshan Pai <<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>><br>
>> 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,<br>
>> > 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>
>> ><br>
>> > Regards<br>
>> > Darshan<br>
>> ><br>
>> > _______________________________________________<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>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>