The best way to convert obj to well work vtk?

Post Reply
yashimar
Posts: 3
Joined: Thu Jan 20, 2022 3:52 pm

The best way to convert obj to well work vtk?

Post by yashimar »

Hello,

I tried to convert obj to vtk using Tetwild and Gmsh which method is suggested in https://github.com/bulletphysics/bullet ... -734754646.
This method is reported to work by some user in the discussion, but unfortunately it didn't work for me.
More specifically, the generation of msh by Tetwild and the generation of vtk by Gmsh seem to work well by visual confirmation on Gmsh.
And even if you check the contents of the vtk file, it seems to be properly in the legacy format and the cells are composed only of the tetrahedron.
But when I try to load it with pybullet, it crashes...
Please tell me the best way to convert obj to well work vtk?

For reference, here is the msh and vtk I created in the above process.
https://github.com/yashimar/mysim/blob/master/ball.msh
https://github.com/yashimar/mysim/blob/ ... kterst.vtk
This was created from ball.obj, which is included in the sample data of pybullet https://github.com/bulletphysics/bullet ... aster/data, and ball.vtk in the same directory can be properly read by pybullet.

Any advice is welcome, thank you.
Post Reply