X3DScene

wrapper_class: Scene
default_light_type: str
light_types: dict
default_viewpoint: dict
camera_sensor_def: str
camera_rig_def: str
default_up_vector: tuple
default_right_vector: tuple
default_view_vector: tuple
default_view_distance: int

 

__init__(self, *children: 'X3DPrimitive', background=None, environment=True, lighting=None, navigation=None, viewpoint=None, **opts): 

LLM Docstring

Set up a scene primitive with an optional background and viewpoint.

  • children: Any

    the scene’s child primitives

  • background: Any

    the background specification

  • viewpoint: Any

    the viewpoint specification

  • environment: Any

    True/False/None, a dict of Environment options, or an X3DEnvironment

  • lighting: Any

    a list of light specs (dicts with a type key resolving via light_types, or X3DLight instances)

  • opts: Any

    extra scene options

 

@classmethod
resolve_light(cls, light_spec) -> 'X3DLight': 

Resolve a lighting spec (a dict keyed by light type, defaulting to default_light_type, or an already-built light object) into an X3DLight instance.

  • light_spec: Any

    the lighting spec

  • :returns: X3DLight

    the light

 

@classmethod
get_view_settings(cls, up_vector=None, view_vector=None, right_vector=None, view_distance=None, view_center=None, view_matrix=None, view_position=None, return_settings=False, **etc): 

LLM Docstring

Build viewpoint settings (position/orientation/etc.) from a flexible view specification.

  • args: Any

    positional view arguments

  • kwargs: Any

    view options

  • :returns: dict

    the viewpoint settings


Feedback

Examples

Templates

Documentation