# Question from enabling opacity mapping in categorical colors

**URL:** https://discourse.paraview.org/t/question-from-enabling-opacity-mapping-in-categorical-colors/12890
**Category:** ParaView Support
**Created:** [September 20, 2023, 3:23am UTC](https://discourse.paraview.org/t/question-from-enabling-opacity-mapping-in-categorical-colors/12890 "2023-09-20T03:23:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [September 20, 2023, 3:23am UTC](https://discourse.paraview.org/t/question-from-enabling-opacity-mapping-in-categorical-colors/12890/1 "2023-09-20T03:23:10Z")

</div>

Hi Paraview,  
This is a simple question related to my previous [post](https://discourse.paraview.org/t/some-questions-about-categorical-colors/12860).  
While I applied opacity mapping on this cube, I saw through it.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5d1963eebab0b6b691b3d3580d7099b515e405be.png) ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2ab201a9ccf6fa1286c06a893989e5c1fa9222ae.png)

I understand this means there is no “surface” in the contacting area between sub-cube, which is reasonable. I am just curios if we can set something to make the surface exist (maybe set something for verbose surface?) or is there a way to remove sub-cube like I intended to.

I know `threshold` filter works, but it is heavy and not flexible. I also tried different options in `Backface Representation`, but none of them works.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 20, 2023, 11:51am UTC](https://discourse.paraview.org/t/question-from-enabling-opacity-mapping-in-categorical-colors/12890/2 "2023-09-20T11:51:49Z")

</div>

Not as-is with surface representation. What you are looking for is “Masked Cells” which is supported by most type of vtkDataSet. But you must set it on the data.
