Load and read ply files with Pymesh

Bárbara Duarte picture Bárbara Duarte · May 5, 2016 · Viewed 16.6k times · Source

I am trying to load/read a ply file using PyMesh and this line command:

mesh = pymesh.load_mesh("model.obj")

as it is in http://pymesh.readthedocs.io/en/latest/basic.html.

But this gives me an error "AttributeError: 'module' object has no attribute 'load_mesh'".

Am I doing anything wrong? Also I want to know if PyMesh really allows to visualize in 3d the objects.

Thank you.

Answer

Alex Kelly picture Alex Kelly · Dec 5, 2016

If you installed with pip, you might not have gotten the pymesh module you were intending to use. Since you're looking for the load_mesh() method, you'll want to use this installation guide: http://pymesh.readthedocs.io/en/latest/installation.html.