Update parameter range for sphere

This commit is contained in:
Grant Sanderson 2024-11-25 12:39:41 -07:00
parent fbce0b132c
commit 85638d88dc

View file

@ -94,7 +94,7 @@ class Sphere(Surface):
def __init__(
self,
u_range: Tuple[float, float] = (0, TAU),
v_range: Tuple[float, float] = (1e-5, PI - 1e-5),
v_range: Tuple[float, float] = (0, PI),
resolution: Tuple[int, int] = (101, 51),
radius: float = 1.0,
**kwargs,
@ -158,7 +158,6 @@ class Cylinder(Surface):
**kwargs
)
def init_points(self):
super().init_points()
self.scale(self.radius)