<div>Here is the link to the small converter that I posted a while back:</div>
<div> </div>
<div><a href="http://public.kitware.com/pipermail/vtk-developers/2007-October/004746.html">http://public.kitware.com/pipermail/vtk-developers/2007-October/004746.html</a></div>
<div> </div>
<div>I wrote it. </div>
<div>I have also entered this as a feature request for ParaView as it crops up quite often.</div>
<div> </div>
<div> </div>
<div> </div>
<div>Andrew<br><br></div>
<div class="gmail_quote">On Sat, Feb 23, 2008 at 12:24 AM, Mike Jackson <<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Actually,<br> All was fixed with her data set. I do agree that a small convertor<br>would be nice. If I had time I could hack something together with a Qt<br>
Gui. Maybe read CSV files with xyz and optional point data? Shouldn't<br>be too hard to do just need the time.<br><br>Also some one posted some code earlier to do just this type of<br>conversion. I think you will need to look in the list archives for the<br>
code though. I don't remember exactly when it was posted.<br><br>Mike<br>
<div>
<div></div>
<div class="Wj3C7c"><br>On Fri, Feb 22, 2008 at 4:16 AM, Lester Anderson<br><<a href="mailto:lester_anderson1963@hotmail.com">lester_anderson1963@hotmail.com</a>> wrote:<br>><br>> Hello<br>><br>> Following on from Mike Jackson's info:<br>
><br>> > Hi everyone,<br>> ><br>> > I am finding some problems when trying to convert my three column<br>> > ASCII data (XYZ) into vtk format. I know I have to define poligones<br>> > and normals but I don't really know how. Is there any program that<br>
> > converts general raw data files to vtk files? If not, any advice on<br>> > how to get the poligones and normals would be very appreciated.<br>> > Thank you very much in advance for your help.<br>> ><br>
> > Patty<br>> ><br>> > --<br>> > Dr Patricia Lozano-Casal<br>> > Institute for Materials and Processes<br>> > School of Engineering and Electronics<br>> > University of Edinburgh<br>
> > Kenneth Denbigh Building<br>> > The King's Buildings<br>> > Mayfield Road<br>> > Edinburgh, EH9 3JL, United Kingdom<br>> > Phone: ++44 (0)131 650 4859<br>> > Fax: ++44 (0)131 650 6551<br>
> > E-mail: P.Lozano-Casal at <a href="http://ed.ac.uk/" target="_blank">ed.ac.uk</a><br>> ><br>> > --<br>> > The University of Edinburgh is a charitable body, registered in<br>> > Scotland, with registration number SC005336.<br>
> > --<br>><br>> Is your data just points in space? And you want to show those points<br>> in ParaView?<br>><br>> I might be inclined to try an unstructured grid with only VTK_VERTEX<br>> as cell types.<br>
><br>> <<a href="http://www.vtk.org/pdf/file-formats.pdf" target="_blank">http://www.vtk.org/pdf/file-formats.pdf</a>> may help you figure out<br>> what to write. Page 4 explains about the UnstructuredGrid format,<br>
> while there is an example starting at the bottom of page 8.<br>><br>> # Example VTK file for general XYZ data<br>> # vtk DataFile Version 2.0<br>> Unstructured Grid Example<br>> ASCII<br>> DATASET UNSTRUCTURED_GRID<br>
> POINTS 5 float<br>> 0.0 0.0 0.0<br>> 1.0 0.0 0.0<br>> 2.0 0.0 0.0<br>> 0.0 1.0 0.0<br>> 1.0 1.0 0.0<br>> CELLS 5 10<br>> 1 0<br>> 1 1<br>> 1 2<br>> 1 3<br>> 1 4<br>> CELL_TYPES 5<br>
> 1<br>> 1<br>> 1<br>> 1<br>> 1<br>><br>> # End VTK File<br>><br>> I tried the test file as given and it certainly did not like the first line<br>> which I deleted, and then the file would run and generate 5 points. An error<br>
> message was generated but did not stop the plotting:<br>><br>> ERROR: In<br>> C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkUnstructuredGridReader.cxx, line<br>> 350<br>><br>><br>> vtkUnstructuredGridReader (05BAC7B0): Unrecognized keyword: #<br>
> I think this is definitely something that would be a big help to many of us<br>> that work on XYZ data, if Paraview could automatically load XYZ data without<br>> the need to compile a separate reformatted structure. Clearly if it is only<br>
> a few data points etc then the file could be done manually, but for more<br>> complex and large datasets this gets to be a problem.<br>><br>> Perhaps a stand-alone application could be written to convert from XYZ (or<br>
> even netCDF) formats to ones that Paraview can load without issue. There<br>> also appears to be a issue of legacy formats and the newer structures to<br>> contend with.<br>><br>> Lester<br></div></div>
_______________________________________________<br>ParaView mailing list<br><a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>___________________________________________<br>Andrew J. P. Maclean<br>Centre for Autonomous Systems<br>The Rose Street Building J04<br>The University of Sydney 2006 NSW<br>
AUSTRALIA<br>Ph: +61 2 9351 3283<br>Fax: +61 2 9351 7474<br>URL: <a href="http://www.acfr.usyd.edu.au/">http://www.acfr.usyd.edu.au/</a><br>___________________________________________