# Extract surface for selected cell ids from vtkUnstructuredGrid.

**URL:** https://discourse.vtk.org/t/extract-surface-for-selected-cell-ids-from-vtkunstructuredgrid/7613
**Category:** Support
**Created:** [January 11, 2022, 11:18am UTC](https://discourse.vtk.org/t/extract-surface-for-selected-cell-ids-from-vtkunstructuredgrid/7613 "2022-01-11T11:18:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Swarna\_Ravali](https://discourse.vtk.org/user_avatar/discourse.vtk.org/swarna_ravali/32/2573_2.png) [@Swarna\_Ravali](https://discourse.vtk.org/u/Swarna_Ravali)
#### Post date: [January 11, 2022, 11:18am UTC](https://discourse.vtk.org/t/extract-surface-for-selected-cell-ids-from-vtkunstructuredgrid/7613/1 "2022-01-11T11:18:29Z")

</div>

Hi,  
I understand that vtkGeometryFilter() or vtkDataSetSurfaceFilter() is used to extract surfaces of vtkUnstructuredGrid. But Is there any possible way to extract surface of selected cells (non consecutive).?

And SetCellMinimum() and SetCellMaximum() takes cell ids as input. Is there any way we can provide the cell ids array and extract surface using the above two functions?

Thanks in advance.  
Ravali.
