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
I am trying to load a PLY file with a custom float vertex property named confidence, ranging between 0 and 100. The MeshLab GUI automatically converts this property to vertex quality, but PyMeshLab seems to do something wrong when trying to do the same. The vertex_scalar_array is filled, but only with near-zero values. Because vertex_custom_scalar_attribute_array isn't populated either, I see no way of getting at my values. Is there another way I'm missing? Interestingly, everything works smoothly when I rename the property to quality with a text editor inside the PLY file. I've uploaded the file here: confidence.zip
frompymeshlabimportMeshSetimportsysms=MeshSet()
ms.load_new_mesh(sys.argv[1])
mesh=ms.current_mesh()
# contains values around 1.5e-313scalars=mesh.vertex_scalar_array()
# No valid per vertex scalar attribute named confidence was foundconfs=mesh.vertex_custom_scalar_attribute_array('confidence')
# No valid per vertex scalar attribute named quality was foundquals=mesh.vertex_custom_scalar_attribute_array('quality')
System: Windows 11
PyMeshLab version: 2023.12.post1
Thank you for this amazing tool,
David
The text was updated successfully, but these errors were encountered:
I have a lot of these meshes exported from another application, where I don't have any settings for this and since renaming it to float quality also helps, I'll do that with a little script without having to mess with the binary part of the PLY file.
Just wanted to make sure I'm not missing anything inside PyMeshLab that would spare me the custom script. :)
I am trying to load a PLY file with a custom float vertex property named
confidence
, ranging between 0 and 100. The MeshLab GUI automatically converts this property to vertex quality, but PyMeshLab seems to do something wrong when trying to do the same. Thevertex_scalar_array
is filled, but only with near-zero values. Becausevertex_custom_scalar_attribute_array
isn't populated either, I see no way of getting at my values. Is there another way I'm missing? Interestingly, everything works smoothly when I rename the property toquality
with a text editor inside the PLY file. I've uploaded the file here: confidence.zipSystem: Windows 11
PyMeshLab version: 2023.12.post1
Thank you for this amazing tool,
David
The text was updated successfully, but these errors were encountered: