bundle.gs3d.data

Core data contracts for synthetic Gaussian splat clouds.

These are pure metadata models — no numpy arrays. Heavy numeric data lives in PLY files on disk; the models in this module hold the path plus a small amount of summary information that downstream stages can read without loading the full point cloud.

The in-memory numeric representation lives in bundle.gs3d.ply.GaussianCloudArrays, which is intentionally not a Data subclass because it owns numpy buffers that should never round-trip through JSON.

Attributes

log

Classes

GaussianCloud

Metadata for a single Gaussian splat point cloud stored on disk.

GaussianSequence

Ordered sequence of Gaussian clouds representing a 4D animation.

Module Contents

bundle.gs3d.data.log
class bundle.gs3d.data.GaussianCloud(/, **data: Any)[source]

Bases: bundle.core.data.Data

Metadata for a single Gaussian splat point cloud stored on disk.

path

Location of the backing 3DGS-format PLY file.

num_gaussians

Number of Gaussians in the cloud.

sh_degree

Spherical harmonics degree (0..3). Degree N has (N+1)**2 coefficients per RGB channel; for the standard 3DGS PLY layout that means 3 DC coefficients (f_dc_0..2) and 3 * ((N+1)**2 - 1) rest coefficients (f_rest_*).

bbox_min

Axis-aligned bounding box minimum corner.

bbox_max

Axis-aligned bounding box maximum corner.

path: pathlib.Path
num_gaussians: int = 0
sh_degree: int = 3
bbox_min: tuple[float, float, float] = (0.0, 0.0, 0.0)
bbox_max: tuple[float, float, float] = (0.0, 0.0, 0.0)
validate_exists() → bool[source]
class bundle.gs3d.data.GaussianSequence(/, **data: Any)[source]

Bases: bundle.core.data.Data

Ordered sequence of Gaussian clouds representing a 4D animation.

A sequence is the simplest 4D representation: one PLY frame per keyframe, with downstream tools handling interpolation. The temporal generators in bundle.gs3d.temporal populate this structure.

frames_dir

Directory containing per-frame PLY files.

frame_count

Number of frames in the sequence.

fps

Playback rate, used by exporters and players.

frame_paths

Ordered list of PLY paths (frame 0 first).

frames_dir: pathlib.Path
frame_count: int = 0
fps: float = 30.0
frame_paths: list[pathlib.Path]
validate_exists() → bool[source]