[vtkusers] Question ? [Reading data from txt file]
daviddoria at gmail.com
Mon Aug 6 12:50:03 EDT 2012
> What I could read it in VTK ?
> I have already tried with example:
> But I couldn't read well data value of points/triangle.
> I received : output :
> x: 1.#QNANy: 0z: 0 n: 0 0 0
If you're going to use a custom file format, you'll have to write a custom
That DelimitedTextReader is expecting only point data in the file (no
header like you have). You'd then also have to construct the triangles and
tell it when to reinterpret the data in the output table as triangle
connectivity rather than points.
I'd suggest you just do it manually using something like this:
http://programmingexamples.net/wiki/CPP/IO/FileInput and parsing the stream
manually. Then you can put it all together with:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers