# intersection two stl

**URL:** https://discourse.vtk.org/t/intersection-two-stl/1550
**Category:** Support
**Created:** [August 10, 2019, 8:34pm UTC](https://discourse.vtk.org/t/intersection-two-stl/1550 "2019-08-10T20:34:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![vahid\_rastgoo](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vahid_rastgoo/32/738_2.png) [@vahid\_rastgoo](https://discourse.vtk.org/u/vahid_rastgoo)
#### Post date: [August 10, 2019, 8:34pm UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/1 "2019-08-10T20:34:38Z")

</div>

Hello beloveds How to find out if two stl files collided or collapsed in vtk with python But I don’t want to use the vtkcollisiondetectionfilter class, is there any other way?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 11, 2019, 2:02am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/2 "2019-08-11T02:02:20Z")

</div>

> [@vahid\_rastgoo](#):
>
> But I don’t want to use the vtkcollisiondetectionfilter class, is there any other way?

What’s the reason you do not want to use that class?

---

<div class="post-metadata">

### Author: ![vahid\_rastgoo](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vahid_rastgoo/32/738_2.png) [@vahid\_rastgoo](https://discourse.vtk.org/u/vahid_rastgoo)
#### Post date: [August 11, 2019, 5:55am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/3 "2019-08-11T05:55:31Z")

</div>

Because vtk I installed doesn’t know it and when I build vtk with visuall studio I still have problems not knowing what to do

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 12, 2019, 1:44am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/4 "2019-08-12T01:44:18Z")

</div>

Ok, then please go back to the original discussion about this and provide more details about the steps you did and errors you encountered.

> [@find the actor that another actor is intersecting with](https://discourse.vtk.org/t/find-the-actor-that-another-actor-is-intersecting-with/1379/10):
>
> Hello i downloaded vtk and so did cmake but i get error when i press configure key and it says file invalid can you help me?

---

<div class="post-metadata">

### Author: ![vahid\_rastgoo](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vahid_rastgoo/32/738_2.png) [@vahid\_rastgoo](https://discourse.vtk.org/u/vahid_rastgoo)
#### Post date: [August 12, 2019, 4:17am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/5 "2019-08-12T04:17:44Z")

</div>

Thankful  
The steps I did were as follows:

1. downloaded vtk
2. Installed cmake
3. installed the Python Tool for Visual Studio 2015
4. Run configure and generate
5. all build did in the visuall studio  
But it still doesn’t know vtk and can’t run it visuall studio

---

<div class="post-metadata">

### Author: ![ANGELA](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/f9ae1b/32.png) [@ANGELA](https://discourse.vtk.org/u/ANGELA)
#### Post date: [August 12, 2019, 9:09am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/6 "2019-08-12T09:09:31Z")

</div>

Hello ANDRAS, plz  
how can I contact you, I need your help thank you

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 13, 2019, 1:35am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/7 "2019-08-13T01:35:14Z")

</div>

> [@ANGELA](#):
>
> how can I contact you

You can write here on discourse. For general support, I much prefer discussion in public forum topics, but discourse allows sending private messages, too.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 13, 2019, 1:46am UTC](https://discourse.vtk.org/t/intersection-two-stl/1550/8 "2019-08-13T01:46:03Z")

</div>

> [@vahid\_rastgoo](#):
>
> Thankful  
> The steps I did were as follows:
> 
> 1. downloaded vtk
> 2. Installed cmake
> 3. installed the Python Tool for Visual Studio 2015
> 4. Run configure and generate
> 5. all build did in the visuall studio  
> But it still doesn’t know vtk and can’t run it visuall studio

Probably you need to enable Python wrapping when you configure VTK in CMake. Installing Python Tools for Visual Studio is not necessary.

If you have trouble building VTK then one option is to just wait for new VTK binaries to show up on PyPI, since vtkCollisionDetectionFilter is not part of VTK core. If you want a Python environment where vtkCollisionDetectionFilter class is available now, then you can install 3D Slicer and install SlicerRT extension. For example, start Slicer, hit Ctrl-3 to see Python console, and type this to instantiate a collision detection filter:

```python
import vtkSlicerRtCommonPython
collisionDetector = vtkSlicerRtCommonPython.vtkCollisionDetectionFilter()

```
