<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
My code:<br><br>reader = LegacyVTKReader(FileNames=args[0])<br><br>filter = CleantoGrid(Input=reader)<br><br>writer = DataSetWriter(Input=filter, FileName=args[1])<br>if options.ascii:<br> writer.FileType = 1<br><br>writer.UpdatePipeline()<br><br><br>First dataset has 2 vector data and 3 scalar data, no warning when reading with interactive PV, all associated data are here.<br>No warning during code execution.<br>If I read the resulting dataset with interactive PV, I get this warning:<br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(0, 0, 0);">Generic Warning: In /usr/local/ParaView3/VTK/IO/vtkDataReader.cxx, line 1383</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(0, 0, 0);">Error reading ascii data. Possible mismatch of datasize with declaration.</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(0, 0, 0);"><!--EndFragment--></p><br>and only 1 scalar data and 1 vector data have been loaded.<br><br>> Date: Tue, 1 Dec 2009 06:52:28 -0500<br>> Subject: Re: [Paraview] CleanToGrid python version vs interactive version<br>> From: berk.geveci@kitware.com<br>> To: stan1313@hotmail.fr<br>> CC: paraview@paraview.org<br>> <br>> I don't think that what you are describing is possible. That filter<br>> does not have an option to process fewer than all of the arrays. Can<br>> you tell us how to reproduce it?<br>> <br>> -berk<br>> <br>> On Tue, Dec 1, 2009 at 6:47 AM, Fred Fred <stan1313@hotmail.fr> wrote:<br>> > If a apply CleanToGrid to a dataset with several scalar and vector point<br>> > data, I get an unstructured grid with all the associated variables.<br>> > But if I apply the same process in Python, only 1 scalar and 1 vector data<br>> > are sent to the resulting dataset.<br>> > How to ask CleanToGrid to include all associated data?<br>> ><br>> ><br>> > ________________________________<br>> > Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici !<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> > http://paraview.org/Wiki/ParaView<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> ><br>> ><br> <br /><hr />PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! <a href='http://www.hotmailmagicmoment.com' target='_new'>C'est ici !</a></body>
</html>