MeshLib icon indicating copy to clipboard operation
MeshLib copied to clipboard

Store face colors in a Mesh, in c++

Open ghost opened this issue 10 months ago • 1 comments

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));

ghost avatar Feb 12 '25 00:02 ghost