[vtkusers] Problems with Polyhedron cells in binary output

Dženan Zukić dzenanz at gmail.com
Mon Oct 17 10:59:12 EDT 2011


Maybe binary means that header remains ASCII but body (data) is compressed
using zlib?

HTH

On Mon, Oct 17, 2011 at 15:52, Doug McCorkle <mccdo at iastate.edu> wrote:

> Hello,
>
> I am trying to generate a grid with Polyhedron cells but am running into
> problems. When I try this test:
>
>
> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Graphics/Testing/Cxx/TestPolyhedron0.cxx
>
> and change the output to binary I get this in the header:
>
>  offset="588"="1.0"?>
> <VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
>  <UnstructuredGrid>
>    <Piece NumberOfPoints="24"                   NumberOfCells="1"
>         >
>      <PointData Scalars="Elevation" Normals="Normals" TCoords="TCoords">
>        <DataArray type="Float32" Name="Normals" NumberOfComponents="3"
> format="appended" RangeMin="1"                    RangeMax="1"
>      offset="0"                   />
>        <DataArray type="Float32" Name="TCoords" NumberOfComponents="2"
> format="appended" RangeMin="6.3639610307"         RangeMax="11.853269591"
>         offset="60"                  />
>        <DataArray type="Float32" Name="Elevation" format="appended"
> RangeMin="0"                    RangeMax="1"                    offset="184"
>                 />
>      </PointData>
>      <CellData>
>      </CellData>
>      <Points>
>        <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> format="appended" RangeMin="12.247448714"         RangeMax="12.247448714"
>       offset="236"                 />
>      </Points>
>      <Cells>
>
> Any suggestions on what might be the problem? Thanks for the help.
>
> Doug
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111017/e990ef23/attachment.htm>


More information about the vtkusers mailing list