mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
More renderer parameter descriptions
Summary: Copy some descriptions of renderer parameters to more places so they are easier to find. Also a couple of small corrections, and make RasterizationSettings a dataclass. Reviewed By: nikhilaravi, patricklabatut Differential Revision: D30899822 fbshipit-source-id: 805cf366acb7d51cb308fa574deff0657c199673
This commit is contained in:
committed by
Facebook GitHub Bot
parent
860b742a02
commit
9a737da83c
@@ -5,10 +5,11 @@
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
import math
|
||||
from typing import Tuple, Union
|
||||
from typing import Tuple
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
DEFAULT_ACOS_BOUND = 1.0 - 1e-4
|
||||
|
||||
|
||||
@@ -27,9 +28,11 @@ def acos_linear_extrapolation(
|
||||
if lower_bound <= x <= upper_bound:
|
||||
acos_linear_extrapolation(x) = acos(x)
|
||||
elif x <= lower_bound: # 1st order Taylor approximation
|
||||
acos_linear_extrapolation(x) = acos(lower_bound) + dacos/dx(lower_bound) * (x - lower_bound)
|
||||
acos_linear_extrapolation(x)
|
||||
= acos(lower_bound) + dacos/dx(lower_bound) * (x - lower_bound)
|
||||
else: # x >= upper_bound
|
||||
acos_linear_extrapolation(x) = acos(upper_bound) + dacos/dx(upper_bound) * (x - upper_bound)
|
||||
acos_linear_extrapolation(x)
|
||||
= acos(upper_bound) + dacos/dx(upper_bound) * (x - upper_bound)
|
||||
```
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user