* Convert map to mesh positions. */
| 66 | * Convert map to mesh positions. |
| 67 | */ |
| 68 | VertexData<Vector3> mapToMeshData(VertexData<Vector2>& flattening) { |
| 69 | |
| 70 | VertexData<Vector3> flat = geometry->inputVertexPositions; |
| 71 | for (Vertex v : mesh->vertices()) { |
| 72 | flat[v] = Vector3{flattening[v][0], flattening[v][1], 0.0}; |
| 73 | } |
| 74 | return flat; |
| 75 | } |
| 76 | |
| 77 | static const ImVec4 pressColor = ImColor::HSV(1. / 7.0f, 0.6f, 0.6f); // gold |
| 78 | static const ImVec4 releaseColor{0.35f, 0.61f, 0.49f, 0.62f}; // default green |
no outgoing calls
no test coverage detected