Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load and read ply files with Pymesh

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.

like image 901
Bárbara Duarte Avatar asked May 05 '16 14:05

Bárbara Duarte


People also ask

What is Pymesh?

What is Pymesh? Pymesh is the LoRa full-mesh network technology. A Mesh network acts like a net, this means that any node within the network can connect with any other node. Mesh networks essentially get rid of gateways, which decentralises the network's infrastructure.

What is Plyfile in Python?

Welcome to the plyfile Python module, which provides a simple facility for reading and writing ASCII and binary PLY files. The PLY format is documented elsewhere.


2 Answers

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.

like image 172
Alex Kelly Avatar answered Oct 06 '22 19:10

Alex Kelly


There are actually two modules named pymesh.

Pymesh by Takuro Wada

If you install pymesh using pip you are installing this one which has the following GitHub page.

It reads: .sty and .obj

Pymesh by Qingnan Zhou

If you want to install http://pymesh.readthedocs.io/en/latest/ you have to follow the installation guidelines here.

It is more complex, I never manage to get it working, but it should read also .ply.

like image 8
G M Avatar answered Oct 06 '22 20:10

G M