# CellData with a data size different for each CellType.

**URL:** https://discourse.vtk.org/t/celldata-with-a-data-size-different-for-each-celltype/5593
**Category:** Support
**Created:** [April 20, 2021, 12:57pm UTC](https://discourse.vtk.org/t/celldata-with-a-data-size-different-for-each-celltype/5593 "2021-04-20T12:57:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Florian\_Maurin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/florian_maurin/32/3270_2.png) [@Florian\_Maurin](https://discourse.vtk.org/u/Florian_Maurin)
#### Post date: [April 20, 2021, 12:57pm UTC](https://discourse.vtk.org/t/celldata-with-a-data-size-different-for-each-celltype/5593/1 "2021-04-20T12:57:59Z")

</div>

In the example below, the cell data size is the same for each cell.

```
 <CellData HigherOrderDegrees="HigherOrderDegrees">
        <DataArray type="Float64" Name="HigherOrderDegrees" NumberOfComponents="3" format="ascii" RangeMin="1" RangeMax="2">
          2 2 1 2 2 1
          2 2 1 2 2 1
          2 2 1
        </DataArray>
      </CellData>

```

Would it be possible to define a size specific for each cell or each cell type via an offset?

Like the connectivity, the size of the element node ids is specific to each cell type, and since the size is not uniform, an offset table is used. Can we do the same with CellData?

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joachim_p/32/3272_2.png) [@Joachim\_P](https://discourse.vtk.org/u/Joachim_P)
#### Post date: [April 21, 2021, 3:45am UTC](https://discourse.vtk.org/t/celldata-with-a-data-size-different-for-each-celltype/5593/2 "2021-04-21T03:45:57Z")

</div>

I fear it is not possible - and no filter/rendering technique in VTK can exploite such a feature. So you might then want to use the largest array width and fill unused values with NaN for example.  
HTH,  
J.
