# Problem with Paraview reading direction dependent degrees for a \`VTK\_LAGRANGE\_QUADRILATERAL\`

**URL:** https://discourse.paraview.org/t/problem-with-paraview-reading-direction-dependent-degrees-for-a-vtk-lagrange-quadrilateral/10246
**Category:** ParaView Support
**Created:** [September 2, 2022, 6:26pm UTC](https://discourse.paraview.org/t/problem-with-paraview-reading-direction-dependent-degrees-for-a-vtk-lagrange-quadrilateral/10246 "2022-09-02T18:26:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lcw](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lcw/32/9840_2.png) [@lcw](https://discourse.paraview.org/u/lcw)
#### Post date: [September 2, 2022, 6:26pm UTC](https://discourse.paraview.org/t/problem-with-paraview-reading-direction-dependent-degrees-for-a-vtk-lagrange-quadrilateral/10246/1 "2022-09-02T18:26:05Z")

</div>

Dear Paraview Community,

I am having problems loading the following data in Paraview that contains direction dependent degrees for a `VTK_LAGRANGE_QUADRILATERAL`.

```auto
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64">
  <UnstructuredGrid>
    <Piece NumberOfPoints="12" NumberOfCells="1">
      <PointData>
      </PointData>
      <CellData>
        <DataArray type="Int64" Name="HigherOrderDegrees" NumberOfComponents="3" format="ascii">
          2 3 12
        </DataArray>
        <DataArray type="Int64" Name="CellNumber" format="ascii">
          1
        </DataArray>
      </CellData>
      <Points>
        <DataArray type="Float64" Name="Points" NumberOfComponents="3" format="ascii">
          0 0 0 0.5 0 0
          1 0 0 0 0.3333333333333334 0
          0.5000000000000001 0.3333333333333334 0 1.0000000000000002 0.3333333333333334 0
          0 0.6666666666666666 0 0.5 0.6666666666666666 0
          1 0.6666666666666666 0 0 1 0
          0.5 1 0 1 1 0
        </DataArray>
      </Points>
      <Cells>
        <DataArray type="Int64" Name="connectivity" format="ascii">
          0 2 11 9 1 5
          8 10 3 6 4 7
        </DataArray>
        <DataArray type="Int64" Name="offsets" format="ascii">
          12
        </DataArray>
        <DataArray type="UInt8" Name="types" format="ascii">
          70
        </DataArray>
      </Cells>
    </Piece>
  </UnstructuredGrid>
</VTKFile>

```

Reading the mesh works in Paraview 5.9.1 and fails in Paraview 5.10.0 (and later versions) with the following error message.

```auto
( 4.656s) [paraview]vtkHigherOrderQuadrilat:598 ERR| vtkLagrangeQuadrilateral (0x1ca4dd90): The degrees are direction dependents, and should be set in the input file.
( 4.659s) [paraview]vtkHigherOrderQuadrilat:623 ERR| vtkLagrangeQuadrilateral (0x1ca4dd90): The degrees might be direction dependents, and should be set before GetOrder is called. numPts is 12 and Order[2] 9
( 4.660s) [paraview]vtkHigherOrderQuadrilat:623 ERR| vtkLagrangeQuadrilateral (0x1ca4dd90): The degrees might be direction dependents, and should be set before GetOrder is called. numPts is 12 and Order[2] 9

```

Did something change with how to specify the degrees of the cells? I am using HigherOrderDegrees CellData. I check the release notes for Paraview 5.10 but didn’t see any discussion of this.

Thanks for any help you can provide,  
Lucas

---

<div class="post-metadata">

### Author: ![lcw](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lcw/32/9840_2.png) [@lcw](https://discourse.paraview.org/u/lcw)
#### Post date: [September 15, 2022, 8:58pm UTC](https://discourse.paraview.org/t/problem-with-paraview-reading-direction-dependent-degrees-for-a-vtk-lagrange-quadrilateral/10246/2 "2022-09-15T20:58:02Z")

</div>

After filing an issue [https://gitlab.kitware.com/paraview/paraview/-/issues/21550](https://gitlab.kitware.com/paraview/paraview/-/issues/21550), I learned that the `<CellData>` should be replaced by `<CellData HigherOrderDegrees="HigherOrderDegrees">`. After this change paraview finds the direction dependent degree information.
