# How to obtain faceID of a patch in VTK?

**URL:** https://discourse.vtk.org/t/how-to-obtain-faceid-of-a-patch-in-vtk/5970
**Category:** Support
**Created:** [June 10, 2021, 8:31am UTC](https://discourse.vtk.org/t/how-to-obtain-faceid-of-a-patch-in-vtk/5970 "2021-06-10T08:31:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rasunag27](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rasunag27/32/3160_2.png) [@rasunag27](https://discourse.vtk.org/u/rasunag27)
#### Post date: [June 10, 2021, 8:31am UTC](https://discourse.vtk.org/t/how-to-obtain-faceid-of-a-patch-in-vtk/5970/1 "2021-06-10T08:31:07Z")

</div>

Dear all,

Is there a possibility to obtain FaceIDs of a particular patch?

1. I have done a heat transfer simulation using OpenFoam, converted to VTK using vtkToFoam option and visualizing in paraview.

2. When doing so, I can see “cellData” which includes Field (T), PatchID, Cell Type and Cell ID (which is nothing but index).

3. I need faceIDs for further process. Is there a possibility to obtain faceIDs along with field values?

Any leads will be appreciated.

Regards,

Sunag R A.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.vtk.org/user_avatar/discourse.vtk.org/olesenm/32/10443_2.png) [@olesenm](https://discourse.vtk.org/u/olesenm)
#### Post date: [June 10, 2021, 3:54pm UTC](https://discourse.vtk.org/t/how-to-obtain-faceid-of-a-patch-in-vtk/5970/2 "2021-06-10T15:54:43Z")

</div>

Cross-posted to [https://discourse.paraview.org/t/how-to-obtain-faceid-of-a-patch-in-paraview/7388](https://discourse.paraview.org/t/how-to-obtain-faceid-of-a-patch-in-paraview/7388), which is where it actually belongs. This is **not** a VTK question.
