gs.options.VisOptions#
- class genesis.options.VisOptions(*, show_world_frame: bool = True, world_frame_size: float = 1.0, show_link_frame: bool = False, link_frame_size: float = 0.2, show_cameras: bool = False, shadow: bool = True, plane_reflection: bool = False, background_color: tuple = (0.04, 0.08, 0.12), ambient_light: tuple = (0.1, 0.1, 0.1), visualize_mpm_boundary: bool = False, visualize_sph_boundary: bool = False, visualize_pbd_boundary: bool = False, segmentation_level: str = 'link', render_particle_as: str = 'sphere', particle_size_scale: float = 1.0, contact_force_scale: float = 0.01, n_support_neighbors: int = 12, n_rendered_envs: int | None = None, lights: list = [{'type': 'directional', 'dir': (-1, -1, -1), 'color': (1.0, 1.0, 1.0), 'intensity': 5.0}])[源代码]#
基类:
OptionsThis configures visualization-related properties that are independent of the viewer or camera.
- 参数:
show_world_frame (bool) – Whether to visualize the world frame.
world_frame_size (float) – The length (in meters) of the world frame’s axes.
show_link_frame (bool) – Whether to visualize the frames of each RigidLink.
link_frame_size (float) – The length (in meters) of the link frames’ axes.
show_cameras (bool) – Whether to render the cameras added to the scene, together with their frustums.
shadow (bool) – Whether to render shadow.
plane_reflection (bool) – Whether to render plane reflection. Defaults to False.
background_color (tuple of float, shape (3,)) – The color of the scene background.
ambient_light (tuple of float, shape (3,)) – The color of the scene’s ambient light.
visualize_mpm_boundary (bool) – Whether to visualize the boundary of the MPM Solver.
visualize_sph_boundary (bool) – Whether to visualize the boundary of the SPH Solver.
visualize_pbd_boundary (bool) – Whether to visualize the boundary of the PBD Solver.
segmentation_level (str) – The segmentation level used for segmentation mask rendering. Should be one of [‘entity’, ‘link’, ‘geom’]. Defaults to ‘link’.
render_particle_as (str) – How particles in the scene should be rendered. Should be one of [‘sphere’, ‘tet’]. Defaults to ‘sphere’.
particle_size_scale (float) – Scale applied to actual particle size for rendering. Defaults to 1.0.
contact_force_scale (float = 0.02) – Scale for contact arrow visualization, m/N. E.g. the force arrow representing 10N will be 0.2m long if scale is 0.02. Defaults to 0.02.
n_support_neighbors (int) – Number of supporting neighbor particles used to compute vertex position of the visual mesh. Used for rendering deformable bodies. Defaults to 12.
n_rendered_envs (int, optional) – Number of environments with being rendered. If None, all environments will be rendered. Defaults to None.
lights (list of dict.) – Lights added to the scene.
gs.options.VisOptions 是一个用于可视化选项的类。它提供了多种配置选项来控制图表和图形的显示方式。
show-inheritance:显示类的继承关系。
更多详细信息,请参考 Genesis 项目的文档。