MCPcopy Create free account
hub / github.com/GeometryCollective/ddg-exercises / mapToMeshData

Function mapToMeshData

projects/parameterization/src/main.cpp:68–75  ·  view source on GitHub ↗

* Convert map to mesh positions. */

Source from the content-addressed store, hash-verified

66 * Convert map to mesh positions.
67 */
68VertexData<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
77static const ImVec4 pressColor = ImColor::HSV(1. / 7.0f, 0.6f, 0.6f); // gold
78static const ImVec4 releaseColor{0.35f, 0.61f, 0.49f, 0.62f}; // default green

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected