geogram icon indicating copy to clipboard operation
geogram copied to clipboard

After running "remesh_smooth", the new mesh did not save the vertex colors of the old mesh.

Open skylinestars opened this issue 1 year ago • 1 comments

Excuse me,After running "remesh_smooth", the new mesh did not save the vertex colors of the old mesh. How should I calculate the vertex colors of the new mesh.

skylinestars avatar Jun 27 '24 00:06 skylinestars

Yes, the result of remesh smooth is a mesh that is completely different from the original mesh, so it does not have the initial attributes. You will have to transfer the attributes, which you can do by creating an AABB (axis-aligned bounding box tree) and find the nearest triangle of the initial mesh for each vertex of the remesh, then interpolate the colors from the mesh. Examples of such attribute transfers are in geogram/mesh/mesh_baking.cpp

BrunoLevy avatar Jul 04 '24 14:07 BrunoLevy