# vtkClipClosedSurface with RGBA

**URL:** https://discourse.vtk.org/t/vtkclipclosedsurface-with-rgba/10140
**Category:** Web
**Created:** [December 9, 2022, 7:08pm UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-with-rgba/10140 "2022-12-09T19:08:35Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Alireza](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alireza/32/6230_2.png) [@Alireza](https://discourse.vtk.org/u/Alireza)
#### Post date: [December 9, 2022, 7:08pm UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-with-rgba/10140/1 "2022-12-09T19:08:35Z")

</div>

In vtk.js, I would like to cut through a surface and show it overlayed in a volume rendering but with RGBA. Something like below but in the sphere area, I want the underlying volume to get shown (since Sphere clipped surface has opacity \<1) as well. The underlying volume is just composite blend.

 ![image](https://discourse.vtk.org/uploads/default/original/2X/4/4ca023fe0e31bb122aa6f5fea3f140d562f9dfd3.jpeg)

Is it possible even? As far as know, the filters are on CPU, so it should be possible?  
I checked the vtkClipClosedSurface API and didn’t see a place for Alpha.

I appreciate any insight on this problem or in general my use case (cutting through a surface and show it with RGBA overlayed).

Here is the demo I created in the code sandbox

> **[volume-surface-clipped - CodeSandbox](https://codesandbox.io/s/volume-surface-clipped-36cbr7?file=%2Fsrc%2Findex.js)**
>
> volume-surface-clipped by sedghi using @kitware/vtk.js

Thanks

---

_[View the full topic](https://discourse.vtk.org/t/vtkclipclosedsurface-with-rgba/10140)._
