I have a discretized 3D surface for which I want to compute piece-wise linear hat functions. I assumed these functions are of the following form:
$$\phi = ax + by + cz + d$$
with the property of $\phi_i(x_j) = \delta_{ij}$.
For a general 3D surface, the number of neighbors for each vertex is different, ranging from 3 to 6 or even more. For example, in the figure below, 3D vertex $i$ has 6 neighbors. This means:
$$ \phi_{17}(x_{17}) = ax_{17} + by_{17} + cz_{17} + d_{17} = 1,\\ \phi_{17}(x_{11}) = ax_{11} + by_{11} + cz_{11} + d_{11} = 0,\\ \phi_{17}(x_{12}) = ax_{12} + by_{12} + cz_{12} + d_{12} = 0,\\ \phi_{17}(x_{13}) = ax_{13} + by_{13} + cz_{13} + d_{13} = 0,\\ \phi_{17}(x_{14}) = ax_{14} + by_{14} + cz_{14} + d_{14} = 0,\\ \phi_{17}(x_{15}) = ax_{15} + by_{15} + cz_{15} + d_{15} = 0,\\ \phi_{17}(x_{16}) = ax_{16} + by_{16} + cz_{16} + d_{16} = 0.\\ $$
The system of equations for vertex 17 is overdetermined (7 equations and 4 unknowns) and not necessarily lead to a set of coefficients, $(a, b, c, d)$, that satisfy $\phi_i(x_j) = \delta_{ij}$.
I was wondering how piece-wise linear hat functions should be computed for such surfaces to guarantee the hat function is $1$ at vertex $i$ and $0$ at all other vertices.
