Findout surface to surface intersection between two 3d shapes

I have two independent 3d shape,like one is square and another is cone. --lets Assume cone is inside square. -- now how can i find out that surface of cone is touching the surface of sqare when i start moving cone in any direction.
It will be Helpful if anyone can suggest algorithm to check surface is touching to another shape surface. I am working with matlab application. but logic in any laungauge will be appriciated.
Thanks in Advance.

Asked:

on 17 Nov 2017

Answered:

on 17 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!