trimesh icon indicating copy to clipboard operation
trimesh copied to clipboard

Problem when calculating discrete mean curvature

Open rmstringhini opened this issue 3 years ago • 2 comments

Hello,

I'm working with the ModelNet10 dataset and I've been getting an error (ValueError: Bounds must be (n, dimension * 2)!) while trying to compute the discrete mean curvature measure of few meshes (few objects in the table category, for example).

This is what I get, sometimes:

image

Is there anyone else facing the same issue?

Best regards.

rmstringhini avatar Aug 03 '22 17:08 rmstringhini

Hey, is that mesh empty by any chance? I.e. len(mesh.faces) == 0

mikedh avatar Aug 04 '22 20:08 mikedh

Hey, is that mesh empty by any chance? I.e. len(mesh.faces) == 0

Hey! Nope, it is not an empty mesh: len(mesh.faces) Out[2]: 792

Funny thing is that for most meshes, it works just fine. But for like 2 to 4 meshes in the table category, for example, it fails for some reason I couldn't figure out

rmstringhini avatar Aug 04 '22 21:08 rmstringhini