# Querying other vector and scalar information in VTP files ?

**URL:** https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647
**Category:** Support
**Created:** [September 16, 2021, 4:57am UTC](https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647 "2021-09-16T04:57:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [September 16, 2021, 4:57am UTC](https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647/1 "2021-09-16T04:57:13Z")

</div>

Hi,

I have been able to reading VTP files to query their point position and their topology/connectivity in C++. I am calling GetPoint(index) to get the position, I am able to write them out as geometry file and loading them successfully.

Now I wish to get access to additional scalar and vector data in the VTP files e.g. velocity, pressure etc.

What class/function should I read up on that provide access to those information

```auto
        <DataArray type="Float32" Name="k" format="appended" RangeMin="0.0028205080889" RangeMax="12.535236359" offset="270680" >
        </DataArray>
        <DataArray type="Float32" Name="nut" format="appended" RangeMin="2.0385788957e-05" RangeMax="0.34273838997" offset="360892" >
        </DataArray>
        <DataArray type="Float32" Name="omega" format="appended" RangeMin="2.5694108009" RangeMax="2925.4777832" offset="451104" >
        </DataArray>
        <DataArray type="Float32" Name="p" format="appended" RangeMin="-73.023971558" RangeMax="87.371086121" offset="541316" >
        </DataArray>
        <DataArray type="Float64" Name="IntegrationTime" format="appended" RangeMin="-0.60359581028" RangeMax="15.315415797" offset="631528" >
        </DataArray>
        <DataArray type="Float64" Name="Vorticity" NumberOfComponents="3" format="appended" RangeMin="8.0318925256e-05" RangeMax="5365.0840883" offset="811944" >

```

Cheers

---

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [September 17, 2021, 4:23am UTC](https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647/2 "2021-09-17T04:23:36Z")

</div>

Figured it out. I am able to query them via

polyData-\>GetCellData();

polyData-\>GetPointData();

Cheers
