-1

Is there a paper published on filter Vertex Attribute Transfer, in case there isn't can someone point me to the literature describing in detail what is happening in the background of the filter?

Thank you

Rockcat
  • 3,002
  • 2
  • 14
  • 28

1 Answers1

0

The filter Vertex Attribute Transfer takes two meshes named "Source" and "Target". The objective of the filter is to assign values to some properties stored in the vertex of "Target", taken from the "Source" mesh.

The algorithm used here is quite clasic:

Foreach vertex in target_mesh:
   Find the nearest point on the surface of source_mesh [1].
   Interpolate the value of the properties on that point in source_mesh surface [2].
   Assign to target_mesh vertex the interpolated values.

[1] This is not the nearest vertex of source_mesh, but a point on the surface of source_mesh. The point is returned as the triangle index and the barycentric coordinates of that point in the triangle. The process is done by iterating over every triangle in source_mesh and computing the nearest point in the triangle to a point in space. You can use an octree or similar structure to avoid iteration over every triangle on source_mesh.

[2] Use linear interpolation using the 3 values defined in the vertex of triangle and the barycentric coordinates as weights.

Rockcat
  • 3,002
  • 2
  • 14
  • 28