pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

the use of the normals_packed()

Open noviceor opened this issue 11 months ago • 1 comments

In this way, it turns out that normal is None. I check the api and find there's a return value of estimate_nomals(). I'd like to know how to ues normals_packed() after 'estimate'. 屏幕截图 2024-03-17 122720 屏幕截图 2024-03-17 122323

noviceor avatar Mar 17 '24 05:03 noviceor

If you want to use normals_packed() to return the value calculated by a previous estimate_nomals(), you just need to set assign_to_self=True in that call to estimate_nomals(). If you don't set that, then estimate_nomals acts as a pure function.

See https://github.com/facebookresearch/pytorch3d/blob/main/pytorch3d/structures/pointclouds.py#L1044

bottler avatar Mar 17 '24 18:03 bottler