Jane
Jane

Reputation: 21

I can't use open3d open obj

When I use "mesh = o3d.io.read_triangle_mesh("data/1.obj")", I get that "[Open3D WARNING] Unable to load file data/1.obj with ASSIMP". There is no problem loading this obj with numpy. Do anyone know what problem is?

Upvotes: 2

Views: 3110

Answers (2)

Jaeyoon Jeong
Jaeyoon Jeong

Reputation: 699

I found that when the path of the file has some unicode, it doesn't work in windows os. In this case, before transfer it to the read function, change the encoding style. like this.

mesh = o3d.io.read_triangle_mesh(file_path.encode("mbcs")) 

Upvotes: 0

Dennis
Dennis

Reputation: 124

Make sure that the path is correct. You will need probably something like this:

mesh = o3d.io.read_triangle_mesh("../data/1.obj")

Upvotes: 3

Related Questions