# How to extract cells that are attached to selected surface?

**URL:** https://discourse.paraview.org/t/how-to-extract-cells-that-are-attached-to-selected-surface/13208
**Category:** ParaView Support
**Created:** [November 8, 2023, 7:43pm UTC](https://discourse.paraview.org/t/how-to-extract-cells-that-are-attached-to-selected-surface/13208 "2023-11-08T19:43:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Javen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/javen/32/12818_2.png) [@Javen](https://discourse.paraview.org/u/Javen)
#### Post date: [November 8, 2023, 7:43pm UTC](https://discourse.paraview.org/t/how-to-extract-cells-that-are-attached-to-selected-surface/13208/1 "2023-11-08T19:43:25Z")

</div>

Hi, may I ask if it’s possible to extract cells that are attached to selected surfaces? Like extract all boundary cells of a model.  
Asking as I want to create a figure that boundary cells and interior cells have difference color.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [November 28, 2023, 4:15am UTC](https://discourse.paraview.org/t/how-to-extract-cells-that-are-attached-to-selected-surface/13208/2 "2023-11-28T04:15:04Z")

</div>

Welcome to the ParaView Community @javen!

You can indeed _select_ all surface cells you want to extract by using ParaView’s [Selection](https://docs.paraview.org/en/latest/UsersGuide/selectingData.html) facilities. You’ll want to select cells by clicking the ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2388b325ce088cb663997dfcd7cc9c2b270b6d18.png) button. You can add further cell selections by enabling the ![image](https://discourse.paraview.org/uploads/default/original/2X/8/87bde01e465567d445eef0ed6a4d9af4daa9081c.png) button and making more cell selections. For example, if you want to select all surface cells, you’ll probably need to make several selections, rotating about the scene and making additional cell selections until all cells are selected.

Next, use the **Extract Selection** filter to extract these cells. That should get you the result you are looking for.
