mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-02-26 08:06:00 +08:00
fbcode/vision/fair/pytorch3d/pytorch3d/renderer/mesh/clip.py
Reviewed By: bottler Differential Revision: D93715239 fbshipit-source-id: 7417015251fe96be72daf4894e946edd43bb9c46
This commit is contained in:
committed by
meta-codesync[bot]
parent
eabb511410
commit
90646d93ab
@@ -434,13 +434,7 @@ def clip_faces(
|
|||||||
# These will then be filled in for each case.
|
# These will then be filled in for each case.
|
||||||
###########################################
|
###########################################
|
||||||
F_clipped = (
|
F_clipped = (
|
||||||
F
|
F + int(faces_delta_cum[-1].item()) + int(faces_delta[-1].item())
|
||||||
# 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()
|
|
||||||
) # Total number of faces in the new Meshes
|
) # Total number of faces in the new Meshes
|
||||||
face_verts_clipped = torch.zeros(
|
face_verts_clipped = torch.zeros(
|
||||||
(F_clipped, 3, 3), dtype=face_verts_unclipped.dtype, device=device
|
(F_clipped, 3, 3), dtype=face_verts_unclipped.dtype, device=device
|
||||||
|
|||||||
Reference in New Issue
Block a user