<br />Did anyone of you write EnSight files and did not have problems with
BlockID?<br /><br />Regards, Eduardo<br /><br /><br /><br />Martin
Baumann schrieb:<br /><br />> Hi,<br />> I am trying to save EnSight
data files with the following code:<br />> string in_file =
"test.asc";<br />> string out_file =
"ensight.ens";<br />> ///
**********************************************/<br />> /// read
Legacy-Format variables/<br />> ///
**********************************************/<br />>
vtkUnstructuredGridReader* _reader = vtkUnstructuredGridReader::New();
_reader->SetFileName(in_file.c_str());<br />>
_reader->Update();<br />> ///
**********************************************/<br />> /// write
EnSight/<br />> /// **********************************************/<br
/>> vtkEnSightWriter* _ens_writer = vtkEnSightWriter::New();<br />>
_ens_writer->SetFileName(out_file.c_str());<br />>
_ens_writer->SetInput(_reader->GetOutput());<br />>
_ens_writer->Write();<br />> _ens_writer->WriteCaseFile(1);<br
/>> <br />> When I run this I get the error<br />> No BlockID
was found<br />> for some some hundred times.<br />> Still threee
files are created:<br />> ensight.0.case<br />>
ensight.0.00000.geo<br />> ensight.0.00000_n.u_x<br />> - I tried
to find out what the error means. What are BlockIDs used for? - Is there
any information on writing EnSight files with vtk?<br />> - In the
example file (test.asc) there are contained three scalars: u_x, u_y and
u_z.<br />> Only one (u_x) is written to an EnSight data file. I need
to export all of the<br />> scalars and vectors if there are any in
the input file. How can I do<br />this?<br />> Regards, M.B.<br
/>>------------------------------------------------------------------------
_______________________________________________<br />>This is the
private VTK discussion list. <br />>Please keep messages on-topic.
Check the FAQ at:<br />http://www.vtk.org/Wiki/VTK_FAQ<br />>Follow
this link to subscribe/unsubscribe:<br
/>>http://www.vtk.org/mailman/listinfo/vtkusers <br /><br /><br /><br
/>-- <br />Atenciosamente,<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<br />