yyvhang / lemon_3d

https://yyvhang.github.io/LEMON/
72 stars 1 forks source link

how to compute curvature #13

Open lnykyks opened 2 months ago

lnykyks commented 2 months ago

Dear Authors:

I am trying to apply Lemon_3d on other datasets. Thus, I'm curious about how did you compute the curvature of both smpl mesh and object point clouds.

Thanks!

yyvhang commented 2 months ago

For smpl mesh, the simplest way is to use the trimesh API:

#for body 
curvature_mesh = trimesh.curvature.discrete_gaussian_curvature_measure(mesh, vertices, 0.12)[:,None].
#for hand
curvature_mesh = trimesh.curvature.discrete_mean_curvature_measure(mesh, vertices, 0.06)[:,None]

For object point clouds, the simplest way is to use software like CloudCompare.

lnykyks commented 2 months ago

For smpl mesh, the simplest way is to use the trimesh API:

#for body 
curvature_mesh = trimesh.curvature.discrete_gaussian_curvature_measure(mesh, vertices, 0.12)[:,None].
#for hand
curvature_mesh = trimesh.curvature.discrete_mean_curvature_measure(mesh, vertices, 0.06)[:,None]

For object point clouds, the simplest way is to use software like CloudCompare.

Thank you very much!