mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-03-19 20:35:59 +08:00
Annotate dunder functions
Summary: Annotate the (return type of the) following dunder functions across the codebase: `__init__()`, `__len__()`, `__getitem__()` Reviewed By: nikhilaravi Differential Revision: D29001801 fbshipit-source-id: 928d9e1c417ffe01ab8c0445311287786e997c7c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
35855bf860
commit
64289a491d
@@ -84,7 +84,7 @@ class ClippedFaces:
|
||||
barycentric_conversion: Optional[torch.Tensor] = None,
|
||||
faces_clipped_to_conversion_idx: Optional[torch.Tensor] = None,
|
||||
clipped_faces_neighbor_idx: Optional[torch.Tensor] = None,
|
||||
):
|
||||
) -> None:
|
||||
self.face_verts = face_verts
|
||||
self.mesh_to_face_first_idx = mesh_to_face_first_idx
|
||||
self.num_faces_per_mesh = num_faces_per_mesh
|
||||
@@ -139,7 +139,7 @@ class ClipFrustum:
|
||||
perspective_correct: bool = False,
|
||||
cull: bool = True,
|
||||
z_clip_value: Optional[float] = None,
|
||||
):
|
||||
) -> None:
|
||||
self.left = left
|
||||
self.right = right
|
||||
self.top = top
|
||||
|
||||
Reference in New Issue
Block a user