bundle.gs3d.generators.base =========================== .. py:module:: bundle.gs3d.generators.base .. autoapi-nested-parse:: Abstract base for synthetic Gaussian generators. A generator is an :class:`Entity` with a single async ``generate`` method that produces a :class:`GaussianCloudArrays`. Generator parameters live directly on the class as Pydantic fields — no separate ``Config`` object — matching the :class:`bundle.recon3d.stages.base.Stage` pattern where stage parameters are just fields on the stage. Attributes ---------- .. autoapisummary:: bundle.gs3d.generators.base.log Classes ------- .. autoapisummary:: bundle.gs3d.generators.base.Generator Module Contents --------------- .. py:data:: log .. py:class:: Generator(/, **data: Any) Bases: :py:obj:`bundle.core.entity.Entity` Base class for procedural Gaussian generators. Subclasses add shape-specific fields and implement :meth:`generate`. .. attribute:: count Number of Gaussians to emit. .. attribute:: sh_degree Spherical harmonics degree (0..3). .. attribute:: seed Random seed; ``None`` for non-deterministic output. .. attribute:: opacity Logit-space opacity assigned to each generated Gaussian (logit ~2.0 ≈ alpha 0.88). .. attribute:: base_scale Initial isotropic log-space scale (``exp(-3) ≈ 0.05``). .. attribute:: color Linear-space RGB colour written into the SH DC term. .. py:attribute:: name :type: str :value: 'generator' .. py:attribute:: count :type: int :value: 10000 .. py:attribute:: sh_degree :type: int :value: 3 .. py:attribute:: seed :type: int | None :value: None .. py:attribute:: opacity :type: float :value: 2.0 .. py:attribute:: base_scale :type: float :value: -3.0 .. py:attribute:: color :type: tuple[float, float, float] :value: (1.0, 1.0, 1.0) .. py:method:: generate() -> bundle.gs3d.ply.GaussianCloudArrays :abstractmethod: :async: Produce a :class:`GaussianCloudArrays` from this generator's parameters.