<br />Hi,<br /><br />I have a problem with the vtkEnsgihtWriter, the
method creates all files correctly (array and .case files) but doesn`t
finish the .case file until the user closes Paraview. The method used was
the follow:<br /><br /><br /><br />void
GenerateCaseFiles(vtkUnstructuredGrid *grid)<br />{<br />
vtkIntArray *bids = vtkIntArray::New();<br />
bids->SetName("BlockId");<br /> for(int i = 0; i
< grid->GetNumberOfCells(); i++)<br
/> bids->InsertNextValue(1);<br
/> grid->GetCellData()->SetScalars(bids);<br
/> <br /> <br />
char name[256]; <br /> sprintf(name,
"%s%s", this->GetOutputPath(), "Out.case");<br
/> <br /> vtkEnSightWriter *
writer;<br /> writer =
vtkEnSightWriter::New();<br />
writer->SetFileName(name);<br />
<br /> int
blockids[2];<br /> blockids[0] = 1;<br
/> blockids[1] = 0;<br />
writer->SetNumberOfBlocks(1);<br />
writer->SetBlockIDs(blockids);<br />
<br
/> for(int i=0; i <
grid->GetNumberOfBlocks(); i++)<br />
{<br />
vtkUnstructuredGrid *output_grid =
vtkUnstructuredGrid::New();<br />
output_grid->DeepCopy(grid); <br />
<br
/>
this->GetGridOfInstantOfTime(i, output_grid);<br />
<br />
writer->SetInput(output_grid);<br
/>
writer->SetTimeStep(i);<br />
writer->Write();<br />
output_grid->Delete(); <br />
}<br />
<br />
writer->UpdateInformation();<br />
writer->UpdateWholeExtent();<br />
writer->Update();<br /> <br
/>
writer->WriteCaseFile(grid->GetNumberOfBlocks());<br
/>
<br />
writer->Delete();<br />
bids->Delete();<br />}<br /><br /><br />Regards,<br /><br /><br /><br
/>Eduardo Camargo<br />Analista de Sistemas<br />HeMoLab -
http://www.lncc.br/prjhemo<br />Laboratório Nacional de
Computação Científica - LNCC