can't use read_mesh in python
I would like to use openmesh in python just to read a mesh from .obj from ShapeNet model. I did following: import openmesh as om from openmesh import * mesh = om.TriMesh() read_mesh(mesh, filename) And I have got error, "name 'read_mesh' is not defined". Was read_mesh replaced with something else?
Hi, This is a point where the Python interface differs from the C++ implementation. Instead of read_mesh() the Python interface provides the read_trimesh(filename: str) and read_polymesh(filename: str) functions, which return a new TriMesh or PolyMesh instance respectively. Best, Alex
On 29. Oct 2021, at 12:12, cherepashkin@phystech.edu wrote:
I would like to use openmesh in python just to read a mesh from .obj from ShapeNet model. I did following:
import openmesh as om
from openmesh import *
mesh = om.TriMesh() read_mesh(mesh, filename)
And I have got error, "name 'read_mesh' is not defined". Was read_mesh replaced with something else? _______________________________________________ OpenMesh mailing list -- openmesh@lists.rwth-aachen.de To unsubscribe send an email to openmesh-leave@lists.rwth-aachen.de https://lists.rwth-aachen.de/postorius/lists/openmesh.lists.rwth-aachen.de
participants (2)
-
cherepashkin@phystech.edu
-
Dielen, Alexander