[vtkusers] saving in a file xyz witch does exist

R D rupin.dalvi at gmail.com
Tue Aug 21 13:05:03 EDT 2012

@David: Would that not become inefficient as the file becomes very
large !?! I work mostly in Java and generally use a BufferedWriter to
append data to existing xyz files. I would assume C++ has similar file
handling capabilities. (To be fair, I'm not sure of the internal
workings of the BufferedWriter. It may be doing exactly what you've



On Tue, Aug 21, 2012 at 11:04 AM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Aug 21, 2012 at 10:53 AM, kaouther <boutara.kaouther at gmail.com>
> wrote:
>> hi all ,i have a problem in saving  a file xyz
>> well this the code
> You'll have to use a vtkSimplePointsReader
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader to get the
> data that is already in the file, then combine it with your data with a
> vtkAppendFilter :
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter , then you can
> write the result with your vtkSimplePointsWriter.
> Also, I suggest you take a look at these suggestions for asking questions:
> http://www.vtk.org/Wiki/VTK/MinimalExample
> David
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

More information about the vtkusers mailing list