Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-processed mesh template #14

Open
anandbhattad opened this issue Jun 8, 2020 · 4 comments
Open

pre-processed mesh template #14

anandbhattad opened this issue Jun 8, 2020 · 4 comments

Comments

@anandbhattad
Copy link

Hi!

Can you please provide pre-processed mesh templates used?

best,
Anand

@nileshkulkarni
Copy link
Owner

nileshkulkarni commented Jun 8, 2020

Hi,
Please find the models here.
https://umich.box.com/s/lik2xukm5qtn68lmqim60altus7k5o1g

Also, if you can access the mean_shape.mat file under cachedir/shapenet/<category> it also has the corresponding verts and faces which you can dump as an obj.

Best,
Nilesh

@anandbhattad
Copy link
Author

Thanks a lot, Nilesh! That was fast :)

Best,
Anand

@anandbhattad
Copy link
Author

anandbhattad commented Jun 12, 2020

Hi Nilesh,

I am trying to get a template mesh for another object. Simply running mesh deform doesn't seem to generate templates like the ones you shared. I realized reading from your ReadMe I need to complete the following 2, 3, 4 steps before doing mesh deform. Is this correct?

  1. Have a model of the category as an obj file.
  2. Convert the model to tsdf field.
  3. Run Marching cubes to get on model
  4. Model clean + close holes a. Merge Close vertices b. Quadratic Simplication c. Remove non-manifold edges
  5. Mesh-deform to create a parametrized mapping

How did you do 2,3,4? Do you have a code for it?
I see here marching_cubes.py mentioned in the following line and I cannot locate marching_cubes.py file in the repo:

print("python marching_cubes.py <in_file.obj> <out_file.obj>")

Thanks for your help!

Best,
Anand

@anandbhattad anandbhattad reopened this Jun 12, 2020
@nileshkulkarni
Copy link
Owner

Hi Anand,

Step 2 can be done using this code. Alternately you can also run binvox on the mesh obj file, and then using that voxel volume as input to marching cubes.

Step 3 can be done using marching cubes from scipy

Step 4 completed in meshlab.

Best,
Nilesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants