Closed
Description
❓ Getting UVs from sampled surface points
I'm using ops.sample_points_from_meshes()
to sample a point cloud on a mesh surface, along with the flag return_textures=True
to get the texture map RGB values for the points (assuming the mesh is properly UV-mapped). This works great but I am wondering if it's possible to also retrieve the UV coordinates of the sampled points. I've looked at the implementation of the sampling function but I am not sure if there's a simple way to hack it, unless this can be done using TexturesUV.sample_textures()
. Surely this is implicitly done under the hood to get a colored point cloud, so I am wondering if this is something that can be easily exposed to the user.
Thanks for all the great work.