Closed JunzheJosephZhu closed 1 week ago
@JunzheJosephZhu Thanks a lot for finding this bug. Since you already identified where the problematic code is could you create a PR fixing the bug?
I haven't really compiled open3d and dont intend to do it in the short term. Ideally, someone can just add a line that zeros out vertex normals here https://github.com/isl-org/Open3D/commit/19551b189a82060b4cd44cc80faaccd9e4bfcb63#diff-ace2240cda6c6014f5a91df75ff46050c6ba940dd076810a18f2e1d3d73b61a3R148 next time they work on the codebase. Joseph Zhu
On Thu, Jul 11, 2024 at 1:19 AM Benjamin Ummenhofer < @.***> wrote:
@JunzheJosephZhu https://github.com/JunzheJosephZhu Thanks a lot for finding this bug. Since you already identified where the problematic code is could you create a PR fixing the bug?
— Reply to this email directly, view it on GitHub https://github.com/isl-org/Open3D/issues/6848#issuecomment-2221063518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2C6G5MNQGILNA3WCA2ZCLZLVUKPAVCNFSM6AAAAABKEKKSK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRGA3DGNJRHA . You are receiving this because you were mentioned.Message ID: @.***>
Missed opportunity to become a contributor 😉
Thanks again for reporting the bug @JunzheJosephZhu !
Checklist
main
branch).Describe the issue
When I call compute_vertex normals() on a mesh already with incorrect normals, the result would be wrong:![image](https://github.com/isl-org/Open3D/assets/24391451/9731b762-6b40-4a5a-86c3-51db0e3a1af4)
However, if I set the existing normals to zeros and call compute_vertex_normals(), the result is correct. I think this is due to the code here not zeroing out previous normals here before accumulating: https://github.com/isl-org/Open3D/pull/4224/commits/19551b189a82060b4cd44cc80faaccd9e4bfcb63![image](https://github.com/isl-org/Open3D/assets/24391451/754e7269-fdc8-4a85-8077-db91b5f424f4)
Steps to reproduce the bug
Error message
No response
Expected behavior
No response
Open3D, Python and System information
Additional information
No response