I have an unanswered question on Stack Overflow that might more related to mathematics than programming. So the part where I am having a problem is described below.
EDIT: I reformulated the whole problem hoping that will be clearer.
Let $\mathcal{A}$ be a set of $m$ points: $$ \mathcal{A} = \{P_i \in \mathbb{R}^6, i \in [1,\ldots, m]\}. $$
From this set of points, a convex hull $\mathcal{C}$ (the smallest convex set that contains the points ${P_i}$) can be defined such that: $$ \mathcal{A} \subseteq \mathcal{C} $$
Let's define $Q \in \mathbb{R}^6$ such that: $$ Q \not\in \mathcal{C} $$
How do I find $Q^{\prime} \in \mathbb{R}^6$, the closest point from $Q$ belonging to the convex hull $\mathcal{C}$: $$ Q^{\prime} \in \mathcal{C}, \forall r \in \mathcal{C}\quad ||Q^{\prime}-Q|| \leq ||r-Q|| $$
I am looking for any algorithm or mathematic method to solve such problem so that I can implement it in my code.
For information: I am using the python scipy implementation of the qhull library for finding the convex hull from $\mathcal{A}$.
Why not just this ...
(1) Using this Qhull libary function
$\qquad$http://www.qhull.org/html/qh-faq.htm#closest
find the facet of the convex hull which is closest to the given point.
(2) For that facet ($k$-dimensional with $0 \le k \le n-1$), find the equations of the $k$-plane containing it.
(3) Using standard techniques from Vector Calculus, find the point on that $k$-plane which is closest to the given point.
Done.
If you post an actual numerical example, we can see if this works.