Hide cells in vtk.js

Is there a way to hide specific cells in vtk.js?
Something like scalar celldata with a specific value don’t get rendered.

Already tried assigning alpha value to a LUT or hiding specific points with ThresholdPoints and trying to map the filtered cells with the original cells, but sadly didn’t get my desired results.

Maybe use the vtk threshold filter

Afaik vtk.js only has the ThresholdPoints, right? Because I didn’t find a “normal” threshold filter like vtk C++ has in the docs.

for which kind of data are you looking to process.is it VTU?

Sorry I forgot to write it in the question :sweat_smile: It’s polydata/VTP

use vtkTableBasedClipDataSet

Sorry for the late answer, but I don’t find vtkTableBasedClipDataSet in the vtk.js docs or in the GitHub repo. Sadly the data I get from the server isn’t created with vtk C++ so I have to rely on vtk.js

Then no other way than vtkThreshold

That’s something I hoped I wouldn’t hear :sweat_smile: but thanks for the help anyways! :+1:

maybe try to set transparency to particular cells based on scalar value