This pull request adds texture information to the downsampled meshes. It uses a KDTree to find the closest neighbor of a point in the downsampled mesh to a point in the original mesh. The active_scalars property of each point found is then transferred from the original mesh points to the downsampled mesh points. We use active_scalars because it represents physical qualities such as the color or temperature of the mesh.
This pull request adds texture information to the downsampled meshes. It uses a KDTree to find the closest neighbor of a point in the downsampled mesh to a point in the original mesh. The
active_scalars
property of each point found is then transferred from the original mesh points to the downsampled mesh points. We useactive_scalars
because it represents physical qualities such as the color or temperature of the mesh.