[vtkusers] XMLPolyDataWriter

Andreas.Ullrich@RIEGL.co.at aullrich at riegl.co.at
Mon Sep 1 05:01:01 EDT 2003


I wonder how to switch off the compressor in the vtkXMLPolyDataWriter.

In the Documentation I find:

virtual void vtkXMLWriter::SetCompressor  (  vtkDataCompressor *     )
[virtual]

   Get/Set the compressor used to compress binary and appended data before
writing to the file.
   Default is no compression.


But when I use the Writer in my simple script (see below) the data are
COMPRESSED.

<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"compressor="vtkZLibDataCompressor">
.
.
.


Script:

.
.
vtkXMLPolyDataReader cylinder
    cylinder SetFileName "test.vtp"

vtkXMLPolyDataWriter xmlwriter
  xmlwriter SetInput [cylinder GetOutput]
  xmlwriter SetFileName "testBINARY.vtp"
  xmlwriter SetDataModeToAppended
  xmlwriter EncodeAppendedDataOff
  xmlwriter Write
.
.
.






More information about the vtkusers mailing list