In a triangle, the signed distance between the edge $e_1$ and the circumcenter of the triangle can be written as $$ d_1 = \frac{\langle e_2, e_3\rangle}{\langle e_1\times e_2, e_1\times e_3\rangle}\cdot \frac{1}{2}\|e_2\times e_3\| \cdot \|e_1\| $$ and equivalently the area enclosed by edge $e_1$ and the circumcenter (relative to the total triangle area) $$ A_1 = \frac{1}{2}\frac{\langle e_1, e_1\rangle \cdot \langle e_2, e_3\rangle}{\langle e_1\times e_2, e_1\times e_3\rangle} = \frac{1}{2}\frac{\langle e_1, e_1\rangle \cdot \langle e_2, e_3\rangle}{\langle e_1, e_1\rangle \cdot \langle e_2, e_3\rangle - \langle e_1, e_2\rangle \cdot \langle e_1, e_3\rangle} $$ where $e_2$ and $e_3$ are the other edges.
The sign of $d_1$ and $A_1$ is negative if and only if the triangle circumcenter is on the "outside" of the triangle with respect to the edge.
I need compute the same value(s) for a tetrahedron, i.e., the signed distance of its circumcenter to a face circumcenter (which is where the connection line meets the face perpendicularly), or the signed relative volume of face $f_1$ and the tetrahedron circumcenter.
Right now, I'm doing a funny cross-product dance to find out what the sign $d$ should have, explicitly computing the tetrahedron circumcenter and the circumcenter of the face, then taking the distance $\|O-H\|$ and signing it accordingly.
Given the simple representation for triangles, I'm wondering if something like this exists for tetrahedra too. Any hints?


If we have a tetrahedron with the vertices $x_0$, $x_1$, $x_2$, $x_3$, let's consider the signed distance $d$ of the circumcenter to the face $x_0$, $x_1$, $x_2$. First, move the opposing vertex $x_3$ to the origin and call $A=x_0-x_3$, $B=x_1-x_3$, $C=x_1-x_3$.
The plane through $A$, $B$, $C$ is given by $$ \langle (B-A) \times (C-A), X\rangle = \langle A\times B, C\rangle, $$ or, more symmetrically $$ \langle A\times B + B\times C + C\times A, X\rangle = \langle A\times B, C\rangle \quad(=\langle B\times C, A\rangle = \langle C\times A, B\rangle). $$ Normalized, this will give a signed distance to the plane for any point $X$, $$ \tilde{d} = \frac{\langle A\times B + B\times C + C\times A, X\rangle - \langle A\times B, C\rangle}{\|A\times B + B\times C + C\times A\|}. $$ We want to assert that $d$ is positive if and only if $X$ is on the same side of the plane as the origin ($x_3$), in other words: $d$ should have the same sign as $- \langle A\times B, C\rangle$. We can thus multiply with $-\langle A\times B, C\rangle/|\langle A\times B, C\rangle|$. Considering $|\langle A\times B, C\rangle|=6|\text{tet}|$ and $\|A\times B + B\times C + C\times A\|=2|\text{face}|$, we get $$ d =\frac{1}{12\cdot|\text{tet}|\cdot|\text{face}|}(-\langle A\times B + B\times C + C\times A, X\rangle\langle A\times B, C\rangle + \langle A\times B, C\rangle^2). $$ Inserting the circumcenter $$ O=\frac{(B\times C)\langle A, A\rangle + (C\times A)\langle B, B\rangle + (A\times B)\langle C, C\rangle}{2\langle A\times B, C\rangle} $$ for $X$ simplifies things a little further to $$ d =\frac{1}{24\cdot|\text{tet}|\cdot|\text{face}|}(-\langle A\times B + B\times C + C\times A, (B\times C)\langle A, A\rangle + (C\times A)\langle B, B\rangle + (A\times B)\langle C, C\rangle\rangle + 2\langle A\times B, C\rangle^2). $$