# Is it possible to set the different edge color for specific cell?

**URL:** https://discourse.vtk.org/t/is-it-possible-to-set-the-different-edge-color-for-specific-cell/11545
**Category:** Announcements
**Created:** [May 26, 2023, 3:00am UTC](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-edge-color-for-specific-cell/11545 "2023-05-26T03:00:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AlexLuya](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexluya/32/4036_2.png) [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)
#### Post date: [May 26, 2023, 3:00am UTC](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-edge-color-for-specific-cell/11545/1 "2023-05-26T03:00:56Z")

</div>

Is it possible to set the edge color to WHITE for entire actor,then set the edge color of specific cell to RED?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [May 27, 2023, 12:35pm UTC](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-edge-color-for-specific-cell/11545/2 "2023-05-27T12:35:23Z")

</div>

Hello,

No, it is not. At least the way you want. Depending on the underlying data type, it is possible, via a simple assignment of scalar values, to have some of the edges in a different color:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/0affef4effe7ac96f54e29bc14d9b673dbb4ef22.png)

However, to achive the exact effect you want, your data object needs to have cells of type `VTK_LINE`. The figure below illustrates the cell types you can define (not only squares, triangles or cubes).

 ![image](https://discourse.vtk.org/uploads/default/original/2X/3/3cf43d896f1261bebe2affefcb8062d79edcf91f.png).  
Then assign colors accordignly to the edge cells surrounding the higher order cell you want to highlight.

best,

PC
