Quote:
Original post by Gorwooken
For my closest point on a Tetrahedron, I just calculate the distance to each facet and take the point with the smallest distance, Would it be beneficial for me to break the tetrahedron up into Voronoi regions?
As long as you include all features in your minimization (points, edges, triangles) you are fine. Using voronoi regions is a quick way to get to the right feature. See http://www.continuousphysics.com/Bullet/BulletFull/html/VoronoiSimplexSolver_8cpp-source.html
Quote:
Original post by Gorwooken
Also, a quick question about GJK, say if I have two intersecting objects, the minkowski difference contains the origin. In order to find the penetration distance would I calculate the closest point on the minkowski difference to the origin?
That is correct. However the origin lies within the minkowski difference, so taking this minimum is a bit of work. Take a look at Gino van den Bergens book on GJK, the algorithm for the penetration depth is called EPA, expanding polytope algorithm. An approximation can be done by firing a number of rays in various directions from the origin to the minkowski difference and taking the minimum. I implemented this in the collision detection and physics library Bullet. It features GJK too, using some of Christer Ericsons work.
http://www.continuousphysics.com/Bullet
Erwin Coumans