You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certainly! Here's your original text with Markdown formatting applied to the code parts:
Hi,
I would like to generate a mapping between two objects, one being the parametrized xatlas export of the second one, with the function: ms.transfer_attributes_to_texture_per_vertex. I tried to use this filter on MeshLab and it worked, but I need to automatize it, and PyMeshLab doesn't generate the texture.png file.
importpymeshlabms=pymeshlab.MeshSet()
srcmesh=ms.load_new_mesh("input.obj")
tgtmesh=ms.load_new_mesh("output.obj") # Assuming "output.obj" is the parametrized meshtex_out='texture.png'assertlen(ms) ==2# Truems.transfer_attributes_to_texture_per_vertex(sourcemesh=0, targetmesh=1, textname=tex_out)
# Got console output: "Similar Triangles face sampling" but the tex_out is not created.
I also tried to create an empty file with with open(tex_out, 'w') as f: pass before running the transfer_attributes_to_texture_per_vertex function, but it didn't change anything. I also tried to set "overwrite" to True, but it didn't change anything, whether the file was created initially or not... Did I miss something?
Thank you for your help.
The text was updated successfully, but these errors were encountered:
Certainly! Here's your original text with Markdown formatting applied to the code parts:
Hi,
I would like to generate a mapping between two objects, one being the parametrized xatlas export of the second one, with the function:
ms.transfer_attributes_to_texture_per_vertex
. I tried to use this filter on MeshLab and it worked, but I need to automatize it, and PyMeshLab doesn't generate thetexture.png
file.This is my code:
In another Python kernel:
I also tried to create an empty file with
with open(tex_out, 'w') as f: pass
before running thetransfer_attributes_to_texture_per_vertex
function, but it didn't change anything. I also tried to set "overwrite" toTrue
, but it didn't change anything, whether the file was created initially or not... Did I miss something?Thank you for your help.
The text was updated successfully, but these errors were encountered: