ranahanocka / MeshCNN

Convolutional Neural Network for 3D meshes in PyTorch
MIT License
1.56k stars 314 forks source link

How to generate .edges file for creating .eseg file #73

Closed yuvaramsingh94 closed 4 years ago

yuvaramsingh94 commented 4 years ago

Hi, i went through the matlab code and successfully used it by running on the mesh and .edges file shared along with the code. currently i am planning to try it out on my own dataset. i am not able to find the source for creating .edges file for the 3d .obj file . tried to find solution using blender and meshlab but, not successful . pls guide me on how th\o create the .edges file and explain about the content inside. is it same as the mesh.edges array? will saving this array into .edges file serve the purpose.

Thanks

yuvaramsingh94 commented 4 years ago

found it created edges vector from mesh.edges

from models.layers import mesh_prepare
from options.base_options import BaseOptions
opt = BaseOptions()
opt.initialize()
opt.num_aug = 1
file_name = '<path to obj file>.obj'
mesh_data = mesh_prepare.from_scratch(file_name,opt)
mesh_data.edges