特殊三维场景

限定名称: manim.scene.three\_d\_scene.SpecialThreeDScene

class SpecialThreeDScene(cut_axes_at_radius=True, camera_config={'exponential_projection': True, 'should_apply_shading': True}, three_d_axes_config={'axis_config': {'numbers_with_elongated_ticks': [0, 1, 2], 'stroke_width': 2, 'tick_frequency': 1, 'unit_size': 2}, 'num_axis_pieces': 1}, sphere_config={'radius': 2, 'resolution': (24, 48)}, default_angled_camera_position={'phi': 1.2217304763960306, 'theta': -1.9198621771937625}, low_quality_config={'camera_config': {'should_apply_shading': False}, 'sphere_config': {'resolution': (12, 24)}, 'three_d_axes_config': {'num_axis_pieces': 1}}, **kwargs)[来源]

基础类:ThreeDScene

ThreeDScene的扩展,带有更多设置。

它有一些额外的配置用于轴、球体,以及低质量渲染的覆盖。进一步的关键差异是:

  • 默认情况下,相机阴影适用于3DMobjects,除非以低质量渲染。

  • 已为Spheres和Axes添加了一些默认参数。

方法

get_axes

返回一组3D轴。

get_default_camera_position

返回默认角度相机的位置。

get_sphere

返回一个球体,其属性为传入的关键字参数。

set_camera_to_default_position

将相机设置为其默认位置。

属性

camera

get_axes()[来源]

返回一组3D轴。

Returns:

一组3D坐标轴。

Return type:

ThreeDAxes

get_default_camera_position()[source]

返回默认角度相机的位置。

Returns:

phi、theta、focal_distance 和 gamma 的字典。

Return type:

字典

get_sphere(**kwargs)[来源]

返回一个球体,其属性为传入的关键字参数。

Parameters:

**kwargsSphereSurface 的任何有效参数。

Returns:

球体对象。

Return type:

Sphere

set_camera_to_default_position()[source]

将相机设置为其默认位置。