# Overlaying conflict and depth buffer

**URL:** https://discourse.vtk.org/t/overlaying-conflict-and-depth-buffer/10107
**Category:** Support
**Tags:** python
**Created:** [December 7, 2022, 11:08pm UTC](https://discourse.vtk.org/t/overlaying-conflict-and-depth-buffer/10107 "2022-12-07T23:08:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flagada](https://discourse.vtk.org/user_avatar/discourse.vtk.org/flagada/32/273_2.png) [@Flagada](https://discourse.vtk.org/u/Flagada)
#### Post date: [December 7, 2022, 11:08pm UTC](https://discourse.vtk.org/t/overlaying-conflict-and-depth-buffer/10107/1 "2022-12-07T23:08:23Z")

</div>

Hi all!

For the context my final goal is to display a pressure loading applied on different faces of volumic elements.

I have a vtkUnstructuredGrid containing 3D cells (vtkWedge and vtkHexahedron) with some colors set by a vtkUnsignedCharArray of 3 components and a SetScalarModeToUseCellFieldData and SelectColorArray on the vtkDataSetMapper.  
From this I extract faces with a vtkUnstructuredGridGeometryFilter and I check over the faces wich one I want to keep and wich pressure value applies on it. Then in a dedicated actor I display the selected faces using a vtkLookupTable for the color fringe.  
My problem is that now I have overlapping faces and as you can see in the picture below the render is very bad.

![Capture](https://discourse.vtk.org/uploads/default/original/2X/5/5bd00ebf5f62ff95b364651ddd68e8728eef842b.png)

I am sure that it is possible to improve this by playing with some SetResolveCoincidentTopology options but none of my tests yet leads to a correct result. Is there a simple way to tell this actor to be in front of the others? Or maybe is there any solution to affect a color for each face of a volumic element?

Thanks in advance for your help.
