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

**URL:** https://discourse.vtk.org/t/i-need-to-visualize-the-contact-areas-between-multiple-stl-files/14883
**Category:** vtk.js
**Tags:** vtkwasm, vtkjs
**Created:** [November 15, 2024, 5:44pm UTC](https://discourse.vtk.org/t/i-need-to-visualize-the-contact-areas-between-multiple-stl-files/14883 "2024-11-15T17:44:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HARIPRASATH\_Y\_S](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hariprasath_y_s/32/9483_2.png) [@HARIPRASATH\_Y\_S](https://discourse.vtk.org/u/HARIPRASATH_Y_S)
#### Post date: [November 15, 2024, 5:44pm UTC](https://discourse.vtk.org/t/i-need-to-visualize-the-contact-areas-between-multiple-stl-files/14883/1 "2024-11-15T17:44:20Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [November 15, 2024, 7:53pm UTC](https://discourse.vtk.org/t/i-need-to-visualize-the-contact-areas-between-multiple-stl-files/14883/2 "2024-11-15T19:53:11Z")

</div>

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

**Live example** : [https://vtk.org/files/examples/CollisionDetection/index.html](https://vtk.org/files/examples/CollisionDetection/index.html)  
**Code** : [https://examples.vtk.org/site/Cxx/Visualization/CollisionDetection/#code](https://examples.vtk.org/site/Cxx/Visualization/CollisionDetection/#code)

![image](https://discourse.vtk.org/uploads/default/original/2X/c/cd76f4c9cc5b871f3de99d38f23cda32344a68d3.png)

---

<div class="post-metadata">

### Author: ![HARIPRASATH\_Y\_S](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hariprasath_y_s/32/9483_2.png) [@HARIPRASATH\_Y\_S](https://discourse.vtk.org/u/HARIPRASATH_Y_S)
#### Post date: [November 16, 2024, 4:52am UTC](https://discourse.vtk.org/t/i-need-to-visualize-the-contact-areas-between-multiple-stl-files/14883/3 "2024-11-16T04:52:42Z")

</div>

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.
