bundle.gs3d.temporal ==================== .. py:module:: bundle.gs3d.temporal .. autoapi-nested-parse:: 4D Gaussian sequence generation via keyframed rigid motions. A :class:`TemporalGenerator` reads a static PLY, applies a per-frame rigid transform derived from a :class:`MotionConfig`, and writes one output PLY per frame into ``output_dir``. Supported motions ----------------- rigid -- no motion (identity); useful as a baseline / loop test oscillate -- sinusoidal translation along one axis explode -- positions scale outward from the origin over time orbit -- rotation about a fixed axis (e.g. a 360° turntable) The output contract is :class:`bundle.gs3d.data.GaussianSequence`; the on-disk layout is ``/.ply``. All transforms operate on positions only. Rotations (quaternions) and scales are copied unchanged — downstream stages (Blender, USD) that need animated orientations can extend :class:`MotionConfig` with additional fields. Attributes ---------- .. autoapisummary:: bundle.gs3d.temporal.log Classes ------- .. autoapisummary:: bundle.gs3d.temporal.MotionConfig bundle.gs3d.temporal.TemporalGenerator Module Contents --------------- .. py:data:: log .. py:class:: MotionConfig(/, **data: Any) Bases: :py:obj:`bundle.core.entity.Entity` Parameters describing a single 4D motion. .. attribute:: motion_type One of ``rigid``, ``oscillate``, ``explode``, ``orbit``. .. attribute:: amplitude Scale of the motion (metres for translation, radians for orbit). .. attribute:: frequency Cycles per second; combined with ``frame_count`` and ``fps`` to compute the per-frame angle/displacement. .. attribute:: axis Primary axis letter (``x``, ``y``, or ``z``). .. py:attribute:: name :type: str :value: 'motion' .. py:attribute:: motion_type :type: Literal['rigid', 'oscillate', 'explode', 'orbit'] :value: 'orbit' .. py:attribute:: amplitude :type: float :value: 1.0 .. py:attribute:: frequency :type: float :value: 1.0 .. py:attribute:: axis :type: Literal['x', 'y', 'z'] :value: 'y' .. py:property:: axis_index :type: int .. py:class:: TemporalGenerator(/, **data: Any) Bases: :py:obj:`bundle.core.entity.Entity` Apply a :class:`MotionConfig` to a static PLY and emit a frame sequence. .. attribute:: ply_path Source static Gaussian cloud. .. attribute:: motion Motion configuration. .. attribute:: frame_count Number of output frames. .. attribute:: fps Playback rate (written into :class:`GaussianSequence` metadata). .. attribute:: output_dir Directory to write per-frame PLY files. .. py:attribute:: name :type: str :value: 'temporal' .. py:attribute:: ply_path :type: pathlib.Path .. py:attribute:: motion :type: MotionConfig .. py:attribute:: frame_count :type: int :value: 30 .. py:attribute:: fps :type: float :value: 30.0 .. py:attribute:: output_dir :type: pathlib.Path .. py:method:: generate() -> bundle.gs3d.data.GaussianSequence :async: