[vtkusers] vtkXdmf3Writer index precision

Paul Melis paul.melis at surfsara.nl
Thu Nov 16 04:20:44 EST 2017


Hi,

Is there a way to specify the integer precision of polydata index arrays 
when using the Xdmf3 writer? For me, it's currently writing out indices 
in 64 bits, which is a bit wasteful given the number of vertices:

<?xml version="1.0" encoding="utf-8"?>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="3.3">
   <Domain>
     <Grid Name="Grid">
       <Geometry Origin="" Type="XYZ">
         <DataItem DataType="Float" Dimensions="39010488 3" Format="HDF" 
Precision="4">region-rbc-9.h5:Data2</DataItem>
       </Geometry>
       <Topology Dimensions="77777920" Type="Mixed">
         <DataItem DataType="Int" Dimensions="311111680" Format="HDF" 
Precision="8">region-rbc-9.h5:Data3</DataItem>
       </Topology>
     </Grid>
   </Domain>
</Xdmf>

Or is the output precision of (most) VTK writers fully determined by the 
compiled-in ID type?

Thanks,
Paul

-- 

Paul Melis
| Visualization group leader & developer | SURFsara |
| Science Park 140 | 1098 XG Amsterdam |
| T 020 800 1312 | paul.melis at surfsara.nl | www.surfsara.nl |


More information about the vtkusers mailing list