trimesh
trimesh copied to clipboard
ply files, containing point cloud only, are correctly loaded using load and not load_mesh since version >=4.6.0
When trying to load a ply file containing point cloud only load_mesh is returning <trimesh.Trimesh(vertices.shape=(0, 3), faces.shape=(0, 3))>.
Using the deprecated load I obtain <trimesh.PointCloud(vertices.shape=(3712, 3))>
python3.12, numpy==2.2.2
Hey, yeah since load_mesh -> Trimesh is now typed it only returns a trimesh, and will fail unit tests if it returns any other type. load is fine to keep using as there are no plans to remove it, or for new work you could use trimesh.load_scene and then checking what types of geometry the file contained.
Thank you for looking into that, have a great weekend!