subject to:
\[w_{ij} > 0, \sum_{v_j \in \set{N}_1 \of{v_i}} w_{ij} = 1\]
\(\_radius\) is the diagonal length of the bounding box divided by 20 (also note availability of \(\_origin\))
Distribute the boundary vertices on the circle according to the boundary edge lengths
Map all the interior vertices to the origin: (0,0)
Store the texture coordinate with the function \(mesh\_.set\_texcoord2D(vh, Vec2d(x, y))\)
\[\forall v_i \in \set{interior} : \vec{u}(v_i) \leftarrow \frac{1}{\sum_{v_j \in \set{N}_1 \of{v_i}} w_{ij}} \sum_{v_j \in \set{N}_1 \of{v_i}} w_{ij} \vec{u}(v_j)\]
Another way of solving the linear system \(Lu = b\) is to do the implicit solve
\(L\) is the matrix of non-boundary cotan weights, \(u\) is the unknown texture coordinates and \(b\) stores the boundary condition
\[\forall v_i \in \set{interior}, \sum_{v_j \in \set{N}_1 \of{v_i}} w_{ij}(\vec{u}(v_j) - \vec{u}(v_i)) = 0\]
\[ \begin{align} \mat{M}_{ij} \;&=\; \begin{cases} \func{cot}\alpha_{ij} + \func{cot}\beta_{ij}, & i \ne j \,,\; j \in \set{N}_1\of{v_i} \setminus \partial\set{S} \\ -\sum_{v_j \in \set{N}_1\of{v_i}} \left( \func{cot}\alpha_{ij} + \func{cot}\beta_{ij} \right) & i=j \\ 0 & \text{otherwise} \end{cases} \\[2mm] \mat{D} \;&=\; \func{diag}\of{ \dots, \frac{1}{2A_i}, \dots} \\[2mm] \vec{b}_i \;&=\; -\sum_{v_j \in \set{N}_1\of{v_i} \cap \partial\set{S} } \left( \func{cot}\alpha_{ij} + \func{cot}\beta_{ij} \right) \bar{\vec{u}}_j \end{align} \]
\[ \begin{align} \mat{M}_{ij} \;&=\; \begin{cases} \func{cot}\alpha_{ij} + \func{cot}\beta_{ij}, & i \ne j \,,\; j \in \set{N}_1\of{v_i} \setminus \partial\set{S} \\ -\sum_{v_j \in \set{N}_1\of{v_i}} \left( \func{cot}\alpha_{ij} + \func{cot}\beta_{ij} \right) & i=j \\ 0 & \text{otherwise} \end{cases} \\[2mm] \vec{b}_i \;&=\; -\sum_{v_j \in \set{N}_1\of{v_i} \cap \partial\set{S} } \left( \func{cot}\alpha_{ij} + \func{cot}\beta_{ij} \right) \bar{\vec{u}}_j \end{align} \]
Given an initial mesh and boundary constraints, we want to get the minimal surface
The minimal surface is the solution to the \(LX = 0\) equation
Fix the boundary vertex coordinates such that they satisfy the boundary condition
Question: How many coordinate functions are we solving for here? How many in the texture mapping case?