mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-01 03:12:49 +08:00
Summary: This PR fixes adds a safeguard preventing num_tris to overflow in `MAX_TRIS`-length arrays. The update rule of `num_tris` is bounded : - max(num_tris(t)) = 2*num_tris(t-1) - num_tris(0) = 12 - t <= 6 So : - max(num_tris) = 2^6*12 - max(num_tris) = 768 Reviewed By: bottler Differential Revision: D66162573 fbshipit-source-id: e269a79c75c6cc33306986b1f1256cffbe96c730