球体
合格名称:manim.mobject.three\_d.three\_dimensions.Sphere
| Python | |
|---|---|
Bases: Surface
三维球体。
参数
- center ( Sequence [ float ] ) – 的中心
Sphere。 - radius ( float ) – 的半径
Sphere。 - resolution( Sequence [ int ] ) – 所采集的样本数
Sphere。元组可用于分别定义u和的不同分辨率v。 - u_range ( Sequence [ float ] ) – 变量的范围
u:。(u_min, u_max) - v_range ( Sequence [ float ] ) – 变量的范围
v:。(v_min, v_max)
例子
示例:ExampleSphere

方法
func |
定义所绘制的 z 值Sphere。 |
属性
animate |
用于对 的任何方法的应用程序进行动画处理self。 |
animation_overrides |
|
color |
|
depth |
对象的深度。 |
fill_color |
如果有多种颜色(对于渐变),则返回第一个颜色 |
height |
mobject 的高度。 |
n_points_per_curve |
|
sheen_factor |
|
stroke_color |
|
width |
mobject 的宽度。 |
func(u, v)
定义所绘制的 z 值Sphere。
返回
定义 的 z 值Sphere。
返回类型
numpy.array
参数
- u(float)–
- v(float)–