mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update parameter range for sphere
This commit is contained in:
parent
fbce0b132c
commit
85638d88dc
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue