Data array multi-component labelling

Actually supported by both .vtk and .vtu/vtp:
cname.vtu (2.4 KB)
cname.vtk (528 Bytes)
cname.vtp (3.4 KB)

vtk:

[glow@arch ~/tmp]$ cat cname.vtk 
# vtk DataFile Version 5.1
vtk output
ASCII
DATASET POLYDATA
POINTS 1 float
0 0 0 
METADATA
INFORMATION 2
NAME L2_NORM_RANGE LOCATION vtkDataArray
DATA 2 0 0 
NAME L2_NORM_FINITE_RANGE LOCATION vtkDataArray
DATA 2 0 0 

VERTICES 2 1
OFFSETS vtktypeint64
0 1 
CONNECTIVITY vtktypeint64
0 
POINT_DATA 1
FIELD FieldData 1
Vals 3 1 double
17 13 7 
METADATA
COMPONENT_NAMES

name

INFORMATION 2
NAME L2_NORM_RANGE LOCATION vtkDataArray
DATA 2 22.5167 22.5167 
NAME L2_NORM_FINITE_RANGE LOCATION vtkDataArray
DATA 2 22.5167 22.5167 

vtp/vtu:

[glow@arch ~/tmp]$ cat cname.vtu 
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64">
  <UnstructuredGrid>
    <Piece NumberOfPoints="1"                    NumberOfCells="1"                   >
      <PointData>
        <DataArray type="Float64" Name="Vals" NumberOfComponents="3" ComponentName1="name" format="appended" RangeMin="22.516660498"         RangeMax="22.516660498"         offset="0"                   >
          <InformationKey name="L2_NORM_RANGE" location="vtkDataArray" length="2">
            <Value index="0">

1 Like