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__( def __init__(
self, self,
u_range: Tuple[float, float] = (0, TAU), 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), resolution: Tuple[int, int] = (101, 51),
radius: float = 1.0, radius: float = 1.0,
**kwargs, **kwargs,
@ -158,7 +158,6 @@ class Cylinder(Surface):
**kwargs **kwargs
) )
def init_points(self): def init_points(self):
super().init_points() super().init_points()
self.scale(self.radius) self.scale(self.radius)