Closed Colin97 closed 4 years ago
It should generate negative values as well, can you share an example mesh where it doesn't work?
Is there any update?
Sorry, I'm a bit short on time right now. I just checked your mesh. The backrest of the chair has zero volume, so it makes sense that no points are sampled inside it. For the legs of the chair, as well as the cube though, points inside of it should create negative SDF values. For comparison, I created a cube in Blender and it created negative SDFs inside it. There seems to be something weird with the topology of your mesh. I'll investigate and hopefully provide a fix.
Ok, the issue is now fixed by disabling backface culling. I'll release an updated pip module tomorrow.
I just uploaded a new version to pypi, you should be able to update with pip.
Thank you very much.
Thanks for your great work.
I tried to sample SDF near the surface, but it only outputs positive SDF whatever meshes (watertight or non-watertight) serve as input.
points, sdf = sample_sdf_near_surface(mesh, number_of_points=250000, sign_method = 'depth')