Go to the source code of this file.
◆ MR_Mesh
◆ MR_MeshAttributesToUpdate
◆ MR_std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref
◆ MR_meshPreCollapseVertAttribute()
Please use this callback when you decimate a mesh with associated data with each vertex recalculate texture coordinates and mesh vertex colors for vertices moved during decimation usage example MeshAttributesToUpdate meshParams; auto uvCoords = obj->getUVCoords(); auto colorMap = obj->getVertsColorMap(); if ( needUpdateUV ) meshParams.uvCoords = &uvCoords; if ( needUpdateColorMap ) meshParams.colorMap = &colorMap; auto preCollapse = meshPreCollapseVertAttribute( mesh, meshParams ); decimateMesh( mesh, DecimateSettings{ .preCollapse = preCollapse } ); Generated from function MR::meshPreCollapseVertAttribute
. Parameter mesh
can not be null. It is a single object. Parameter params
can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref_Destroy()
to free it when you're done using it.