fbcode/vision/fair/pytorch3d/pytorch3d/renderer/mesh/clip.py

Reviewed By: bottler

Differential Revision: D93715239

fbshipit-source-id: 7417015251fe96be72daf4894e946edd43bb9c46
This commit is contained in:
generatedunixname1417043136753450
2026-02-22 07:13:09 -08:00
committed by meta-codesync[bot]
parent eabb511410
commit 90646d93ab

View File

@@ -434,13 +434,7 @@ def clip_faces(
# These will then be filled in for each case.
###########################################
F_clipped = (
F
# pyre-fixme[58]: `+` is not supported for operand types `int` and
# `Union[bool, float, int]`.
+ faces_delta_cum[-1].item()
# pyre-fixme[58]: `+` is not supported for operand types `int` and
# `Union[bool, float, int]`.
+ faces_delta[-1].item()
F + int(faces_delta_cum[-1].item()) + int(faces_delta[-1].item())
) # Total number of faces in the new Meshes
face_verts_clipped = torch.zeros(
(F_clipped, 3, 3), dtype=face_verts_unclipped.dtype, device=device