Provide an epsilon of room to Sphere at poles

This commit is contained in:
Grant Sanderson 2023-01-30 20:50:42 -08:00
parent 55da5d5d03
commit a58327657c

View file

@ -96,7 +96,7 @@ class Sphere(Surface):
def __init__( def __init__(
self, self,
u_range: Tuple[float, float] = (0, TAU), u_range: Tuple[float, float] = (0, TAU),
v_range: Tuple[float, float] = (0, PI), v_range: Tuple[float, float] = (1e-5, PI - 1e-5),
resolution: Tuple[int, int] = (101, 51), resolution: Tuple[int, int] = (101, 51),
radius: float = 1.0, radius: float = 1.0,
**kwargs, **kwargs,