I need to visualize the contact areas between multiple .stl files

i need to see the intersecting area in different colour, i dont know how to do it, is there any way in vtk.js to do that functionality. To view the contact area between the .stl files, if possible can you suggest with any example

If you’re using vtk.wasm, you can try vtkCollisionDetectionFilter

Live example: https://vtk.org/files/examples/CollisionDetection/index.html
Code: https://examples.vtk.org/site/Cxx/Visualization/CollisionDetection/#code

image

Without using vtk.wasm, is there any feature like that in vtk.js
Or can we try any other approach for that, if possible can you please suggest me that method.