MeshLib
MeshLib copied to clipboard
Store face colors in a Mesh, in c++
Hello, I have a mesh built from points and triangles. I also have colors for each triangle of the mesh. Is there a way to store them as an attribute? (on the faces, not on the vertices). I am using c++. Thank you. Best regards.
MR::VertCoords mrVertices;
MR::Triangulation mrFaces;
MR::Mesh mesh = MR::Mesh::fromTriangles(std::move(mrVertices), std::move(mrFaces));