<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff size=2>Just
to confirm Dominik's report, I get the same errors after applying the
patch:</FONT></SPAN></DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff
size=2>FileName: all-spheres-PD.vtm<BR>FilePath: ./<BR>FilePrefix:
all-spheres-PD<BR>PieceFileName: ./<BR>ERROR: In
/usr/people/gagliard/Paraview/FILES/VTK5.6.1/VTK/IO/vtkXMLWriter.cxx, line
607<BR>vtkXMLPolyDataWriter (0x7ce4230): Error opening output file
""</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff size=2>ERROR:
In /usr/people/gagliard/Paraview/FILES/VTK5.6.1/VTK/IO/vtkXMLWriter.cxx, line
610<BR>vtkXMLPolyDataWriter (0x7ce4230): Error code "No such file or
directory"</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff size=2>ERROR:
In /usr/people/gagliard/Paraview/FILES/VTK5.6.1/VTK/Filtering/vtkExecutive.cxx,
line 757<BR>vtkStreamingDemandDrivenPipeline (0x7ce4c40): Algorithm
vtkXMLPolyDataWriter(0x7ce4230) returned failure for request: vtkInformation
(0x7ce8c80)<BR> Debug: Off<BR> Modified Time: 1362<BR>
Reference Count: 1<BR> Registered Events: (none)<BR> Request:
REQUEST_DATA<BR> ALGORITHM_AFTER_FORWARD: 1<BR> FORWARD_DIRECTION:
0<BR> FROM_OUTPUT_PORT: -1</FONT></SPAN></DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=704270314-07062010><FONT face=Arial color=#0000ff
size=2>[etc]</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>===================================<BR><BR>Adriano Gagliardi
MEng PhD<BR>Business Sector Leader<BR>Computational Aerodynamics<BR>Aircraft
Research Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32
4644<BR>E-mail: agagliardi@ara.co.uk<BR>Url: www.ara.co.uk </FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> domel07@gmail.com
[mailto:domel07@gmail.com] <B>On Behalf Of </B>Dominik Szczerba<BR><B>Sent:</B>
05 June 2010 13:27<BR><B>To:</B> Utkarsh Ayachit<BR><B>Cc:</B>
agagliardi@ara.co.uk; vtkusers@vtk.org; Berk Geveci<BR><B>Subject:</B> Re:
[vtkusers] Error using vtkXMLMultiBlockDataWriter<BR></FONT><BR></DIV>
<DIV></DIV>Output attached. Works properly when I convert my input surfaces to
unstructured.
<DIV><BR></DIV>
<DIV>
<DIV>FileName: foot3.vtm</DIV>
<DIV>FilePath: ./</DIV>
<DIV>FilePrefix: foot3</DIV>
<DIV>PieceFileName: ./</DIV>
<DIV>ERROR: In /home/domel/pack/vtk-5.6.0/IO/vtkXMLWriter.cxx, line 607</DIV>
<DIV>vtkXMLPolyDataWriter (0x945fa38): Error opening output file ""</DIV>
<DIV><BR></DIV>
<DIV>ERROR: In /home/domel/pack/vtk-5.6.0/IO/vtkXMLWriter.cxx, line 610</DIV>
<DIV>vtkXMLPolyDataWriter (0x945fa38): Error code "No such file or
directory"</DIV>
<DIV><BR></DIV>
<DIV>ERROR: In /home/domel/pack/vtk-5.6.0/Filtering/vtkExecutive.cxx, line
757</DIV>
<DIV>vtkStreamingDemandDrivenPipeline (0x945f958): Algorithm
vtkXMLPolyDataWriter(0x945fa38) returned failure for request: vtkInformation
(0x96352d0)</DIV>
<DIV> Debug: Off</DIV>
<DIV> Modified Time: 166820</DIV>
<DIV> Reference Count: 1</DIV>
<DIV> Registered Events: (none)</DIV>
<DIV> Request: REQUEST_DATA</DIV>
<DIV> ALGORITHM_AFTER_FORWARD: 1</DIV>
<DIV> FROM_OUTPUT_PORT: -1</DIV>
<DIV> FORWARD_DIRECTION: 0</DIV>
<DIV><BR></DIV>
<DIV>[more errors follow]</DIV><BR>
<DIV class=gmail_quote>On Fri, Jun 4, 2010 at 7:46 PM, Utkarsh Ayachit <SPAN
dir=ltr><<A
href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You
can apply the attached patch and then post the generated
output?<BR><BR>Thanks<BR><FONT color=#888888>Utkarsh<BR></FONT>
<DIV>
<DIV></DIV>
<DIV class=h5><BR>On Thu, Jun 3, 2010 at 3:36 PM, Dominik Szczerba <<A
href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</A>> wrote:<BR>>
Same issue here, vtk 5.6, linux.<BR>> Dominik<BR>><BR>> On Thu, Jun
3, 2010 at 3:32 PM, Adriano Gagliardi <<A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A>><BR>>
wrote:<BR>>><BR>>> Unfortunately, it's in serial. I tried it out
with a simple piece of code<BR>>> (mostly taken from the VTK Examples
page) and the same thing happened. The<BR>>> version of VTK was the one
supplied in the ParaView-3.8.0-RC2, but I'll<BR>>> try<BR>>> with
the official release to see if there is any difference. If anyone<BR>>>
else<BR>>> has this working, I'd be interested in seeing an
example.<BR>>><BR>>>
=========================================================================<BR>>>
mbwritertest.cxx:<BR>>>
=========================================================================<BR>>>
#include <sstream><BR>>><BR>>> #include
<vtkSphereSource.h><BR>>> #include
<vtkPolyData.h><BR>>> #include
<vtkMultiBlockDataSet.h><BR>>> #include
<vtkXMLPolyDataWriter.h><BR>>> #include
<vtkXMLMultiBlockDataWriter.h><BR>>> #include
<vtkSmartPointer.h><BR>>><BR>>> int main(int, char
*[])<BR>>> {<BR>>>
vtkSmartPointer<vtkMultiBlockDataSet> MBPolyData =<BR>>>
vtkSmartPointer<vtkMultiBlockDataSet>::New();<BR>>>
MBPolyData->SetNumberOfBlocks(4);<BR>>><BR>>> for (
vtkIdType currBlk = 0; currBlk !=
MBPolyData->GetNumberOfBlocks();<BR>>> ++currBlk )
{<BR>>><BR>>> //Create a sphere.<BR>>>
vtkSmartPointer<vtkSphereSource> sphereSource =<BR>>>
vtkSmartPointer<vtkSphereSource>::New();<BR>>>
sphereSource->SetCenter(currBlk, 0.0, 0.0);<BR>>>
sphereSource->SetRadius(5.0);<BR>>>
sphereSource->Update();<BR>>><BR>>>
vtkSmartPointer<vtkPolyData> poly =
sphereSource->GetOutput();<BR>>><BR>>>
MBPolyData->SetBlock(currBlk, poly);<BR>>><BR>>>
//Write the PolyData to file<BR>>> std::ostringstream
ss;<BR>>> ss << "sphere" << currBlk+1 <<
".vtp";<BR>>> vtkSmartPointer<vtkXMLPolyDataWriter>
writer =<BR>>>
vtkSmartPointer<vtkXMLPolyDataWriter>::New();<BR>>>
writer->SetInput(poly);<BR>>>
writer->SetFileName(ss.str().c_str());<BR>>>
writer->Write();<BR>>> }<BR>>><BR>>>
//Write the MultiBlockData with PolyData to file<BR>>>
vtkSmartPointer<vtkXMLMultiBlockDataWriter> writer2 =<BR>>>
vtkSmartPointer<vtkXMLMultiBlockDataWriter>::New();<BR>>>
writer2->SetInput(MBPolyData);<BR>>>
writer2->SetFileName("all-spheres-PD.vtm");<BR>>>
writer2->Write();<BR>>><BR>>> return
EXIT_SUCCESS;<BR>>> }<BR>>><BR>>>
=========================================================================<BR>>>
CMakeLists.txt:<BR>>>
=========================================================================<BR>>>
cmake_minimum_required(VERSION 2.6)<BR>>><BR>>> PROJECT
(MBWriterTest)<BR>>><BR>>> INCLUDE
(${CMAKE_ROOT}/Modules/FindVTK.cmake)<BR>>> IF
(USE_VTK_FILE)<BR>>> INCLUDE(${USE_VTK_FILE})<BR>>> ENDIF
(USE_VTK_FILE)<BR>>><BR>>> LINK_LIBRARIES(<BR>>>
vtkHybrid<BR>>> )<BR>>><BR>>>
ADD_EXECUTABLE(mbwritertest
mbwritertest.cxx)<BR>>><BR>>><BR>>>
===================================<BR>>><BR>>> Adriano Gagliardi
MEng PhD<BR>>> Business Sector Leader<BR>>> Computational
Aerodynamics<BR>>> Aircraft Research Association Ltd.<BR>>> Manton
Lane<BR>>> Bedford<BR>>><BR>>> Tel: 01234 32
4644<BR>>> E-mail: <A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A><BR>>> Url:
<A href="http://www.ara.co.uk" target=_blank>www.ara.co.uk</A><BR>>>
-----Original Message-----<BR>>> From: Berk Geveci [mailto:<A
href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</A>]<BR>>>
Sent: 03 June 2010 13:20<BR>>> To: <A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A><BR>>> Cc: <A
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A><BR>>> Subject: Re:
[vtkusers] Error using vtkXMLMultiBlockDataWriter<BR>>><BR>>> Is
this in parallel by any chance?<BR>>><BR>>> On Wed, Jun 2, 2010 at
10:52 AM, Adriano Gagliardi <<A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A>><BR>>>
wrote:<BR>>> ><BR>>> > Just to say that this was using VTK
5.6.0.<BR>>> ><BR>>> >
===================================<BR>>> ><BR>>> > Adriano
Gagliardi MEng PhD<BR>>> > Business Sector Leader<BR>>> >
Computational Aerodynamics<BR>>> > Aircraft Research Association
Ltd.<BR>>> > Manton Lane<BR>>> > Bedford<BR>>>
><BR>>> > Tel: 01234 32 4644<BR>>> > E-mail: <A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A><BR>>> >
Url: <A href="http://www.ara.co.uk"
target=_blank>www.ara.co.uk</A><BR>>> > -----Original
Message-----<BR>>> > From: <A
href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</A> [mailto:<A
href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</A>]
On<BR>>> > Behalf Of Adriano Gagliardi<BR>>> > Sent: 01 June
2010 17:50<BR>>> > To: <A
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A><BR>>> > Subject:
[vtkusers] Error using vtkXMLMultiBlockDataWriter<BR>>> ><BR>>>
><BR>>> > Dear Users,<BR>>> ><BR>>> > I have
been having an issue with the vtkXMLMultiBlockDataWriter class<BR>>>
> that contain instances of vtkPolyData. The code follows. Note
that<BR>>> > this same piece of code works fine if the data within
the blocks is of<BR>>> > type<BR>>> >
vtkUnstructuredGrid:<BR>>> ><BR>>> > ####<BR>>> >
//mbdata is a pointer to a vtkMultiBlockDataSet containing either<BR>>>
> vtkPolyData or vtkUnstructuredGrid data sets<BR>>> >
vtkXMLMultiBlockDataWriter* writer =<BR>>> >
vtkXMLMultiBlockDataWriter::New();<BR>>> > std::ostringstream
ss;<BR>>> > ss << "debugFiles/data_out.vtm";<BR>>> >
writer->SetFileName(ss.str().c_str());<BR>>> >
writer->SetInput(mbdata);<BR>>> > writer->Write();<BR>>>
> writer->Delete();<BR>>> > ss.str(std::string());<BR>>>
> ####<BR>>> ><BR>>> > When using this, I get the
following error message:<BR>>> ><BR>>> > ####<BR>>>
> ERROR: In<BR>>> >
/usr/people/gagliard/Paraview/FILES/VTK5.6/VTK/IO/vtkXMLWriter.cxx,<BR>>>
> line 607 vtkXMLPolyDataWriter (0x13473b00): Error opening output
file<BR>>> "debugFiles"<BR>>> ><BR>>> > ERROR:
In<BR>>> >
/usr/people/gagliard/Paraview/FILES/VTK5.6/VTK/IO/vtkXMLWriter.cxx,<BR>>>
> line 610 vtkXMLPolyDataWriter (0x13473b00): Error code "Is a
directory"<BR>>> ><BR>>> > ERROR: In<BR>>> >
/usr/people/gagliard/Paraview/FILES/VTK5.6/VTK/Filtering/vtkExecutive.<BR>>>
> cxx,<BR>>> > line 757<BR>>> >
vtkStreamingDemandDrivenPipeline (0x134743c0): Algorithm<BR>>> >
vtkXMLPolyDataWriter(0x13473b00) returned failure for request:<BR>>>
> vtkInformation (0x1347ac00)<BR>>> > Debug: Off<BR>>>
> Modified Time: 45234<BR>>> > Reference Count:
1<BR>>> > Registered Events: (none)<BR>>> >
Request: REQUEST_DATA<BR>>> > ALGORITHM_AFTER_FORWARD:
1<BR>>> > FORWARD_DIRECTION: 0<BR>>> >
FROM_OUTPUT_PORT: -1<BR>>> > ####<BR>>> ><BR>>>
> I am, however, able to write out each block separately using<BR>>>
> vtkXMLPolyDataWriter:<BR>>> ><BR>>> > ####<BR>>>
> for ( vtkIdType currBlk = 0; currBlk !=
mbdata->GetNumberOfBlocks();<BR>>> > ++currBlk ) {<BR>>>
> vtkXMLPolyDataWriter* writer =
vtkXMLPolyDataWriter::New();<BR>>> > std::ostringstream
ss;<BR>>> > ss << "debugFiles/data_out" << currBlk
<< ".vtp";<BR>>> >
writer->SetFileName(ss.str().c_str());<BR>>> >
writer->SetInput(mbdata->GetBlock(currBlk));<BR>>> >
writer->Write();<BR>>> >
writer->Delete();<BR>>> >
ss.str(std::string());<BR>>> > }<BR>>> >
####<BR>>> ><BR>>> > I am wondering if I'm missing something
fundamental that may cause<BR>>> > that error. Hopefully someone else
can point out the error as I'm not<BR>>> seeing it.<BR>>>
><BR>>> > Cheers,<BR>>> ><BR>>> >
Adriano<BR>>> ><BR>>> >
===================================<BR>>> ><BR>>> > Adriano
Gagliardi MEng PhD<BR>>> > Business Sector Leader<BR>>> >
Computational Aerodynamics<BR>>> > Aircraft Research Association
Ltd.<BR>>> > Manton Lane<BR>>> > Bedford<BR>>>
><BR>>> > Tel: 01234 32 4644<BR>>> > E-mail: <A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A><BR>>> >
Url: <A href="http://www.ara.co.uk"
target=_blank>www.ara.co.uk</A><BR>>> ><BR>>> ><BR>>>
>
**********************************************************************<BR>>>
> This email contains information that is private and confidential
and<BR>>> > is intended only for the addressee.<BR>>> > If
you are not the intended recipient please delete it and notify us<BR>>>
> immediately by e-mailing the sender.<BR>>> > Note: All email
sent to or from this address may be accessed by<BR>>> > someone other
than the recipient, for system management and security<BR>>>
reasons.<BR>>> > Aircraft Research Association Ltd. Registered
in England,<BR>>> > Registration No<BR>>> > 503668
Registered Office:<BR>>> > Manton Lane, Bedford MK41 7PF England VAT
No GB 196351245<BR>>> ><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>>>
> This email contains information that is private and confidential and
is<BR>>> intended only for the addressee.<BR>>> > If you are
not the intended recipient please delete it and notify us<BR>>>
immediately by e-mailing the sender.<BR>>> > Note: All email sent to
or from this address may be accessed by<BR>>> > someone other than
the recipient, for system management and security<BR>>>
reasons.<BR>>> > Aircraft Research Association Ltd. Registered
in England, Registration<BR>>> > No<BR>>> 503668 Registered
Office:<BR>>> > Manton Lane, Bedford MK41 7PF England VAT No GB
196351245<BR>>> ><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>>>
This email contains information that is private and confidential and
is<BR>>> intended only for the addressee.<BR>>> If you are not the
intended recipient please delete it and notify us<BR>>> immediately by
e-mailing the sender.<BR>>> Note: All email sent to or from this address
may be accessed by someone<BR>>> other than the recipient,
for<BR>>> system management and security reasons.<BR>>> Aircraft
Research Association Ltd. Registered in England, Registration
No<BR>>> 503668 Registered Office:<BR>>> Manton Lane, Bedford MK41
7PF England VAT No GB 196351245<BR>>><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>> 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></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV><p>**********************************************************************<br />This email contains information that is private and confidential and is intended only for the addressee.<br />If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br />Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br />system management and security reasons.<br />Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office:<br />Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</p><p>**********************************************************************</p>
</BODY></HTML>