-
Notifications
You must be signed in to change notification settings - Fork 564
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
Attribute error in trianglemesh_to_sdf #761
Comments
Hi @aradhyamathur , you can actually compute sdf by combining check_sign and point_to_mesh_distance. Please be careful to apply |
Hello, @aradhyamathur and @Caenorst. I have also been working on creating a function to convert Mesh to SDF using Kaolin. Following the advice of @aradhyamathur to apply torch.sqrt, I was able to solve the problem observed in the converted model. I am grateful for this valuable advice. Here, I am sharing the function I developed. I hope it will be helpful to others who may face similar issues.
|
@maeda56 this assumes the bounds of the mesh to be in the range of [-0.5, 0.5] right ? should it be based on the grid of the bounds of the mesh or are the vertices always normalized for the mesh you use. |
@aradhyamathur Yes, this function targets meshes that fit within the range of [-0.5, 0.5] on all axes, x, y, and z. And before I use this function, I perform a normalization process to ensure they conform to the prescribed size. |
It seems it should be: torch.where(sign, torch.tensor(1.0).to(device), torch.tensor(-1.0).to(device)) . True is the first value |
Hi, has the function
trianglemesh_to_sdf
been removed fromconversions
? How can we now calculate the SDF of points from aSurfaceMesh
in kaolinv0.14.0
The text was updated successfully, but these errors were encountered: