bundle.gs3d.generators¶
Synthetic Gaussian splat generators — backend registry and factory.
Submodules¶
Classes¶
Base class for procedural Gaussian generators. |
|
Sample a triangle mesh and convert each sample into a surface-aligned Gaussian. |
|
Gaussians inside (or on the surface of) an axis-aligned cube. |
|
Uniform random Gaussians inside an axis-aligned bounding box. |
|
Gaussians distributed uniformly on (or in) a sphere. |
|
Gaussians on a torus surface in the XY plane. |
Functions¶
|
Instantiate a generator for the named shape. |
|
Return the list of registered shape names. |
Package Contents¶
- class bundle.gs3d.generators.Generator(/, **data: Any)[source]¶
Bases:
bundle.core.entity.EntityBase class for procedural Gaussian generators.
Subclasses add shape-specific fields and implement
generate().- count¶
Number of Gaussians to emit.
- sh_degree¶
Spherical harmonics degree (0..3).
- seed¶
Random seed;
Nonefor non-deterministic output.
- opacity¶
Logit-space opacity assigned to each generated Gaussian (logit ~2.0 ≈ alpha 0.88).
- base_scale¶
Initial isotropic log-space scale (
exp(-3) ≈ 0.05).
- color¶
Linear-space RGB colour written into the SH DC term.
- abstractmethod generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
- Async:
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- class bundle.gs3d.generators.MeshToGaussiansGenerator(/, **data: Any)[source]¶
Bases:
bundle.gs3d.generators.base.GeneratorSample a triangle mesh and convert each sample into a surface-aligned Gaussian.
- source¶
Path to a trimesh-readable mesh file (obj, ply, stl, glb, …).
- method¶
"uniform"for fast area-weighted sampling,"even"for Poisson-disc-like even sampling (slower).
- disc_thickness_ratio¶
Ratio of normal-axis scale to tangent-axis scale. Smaller values produce thinner, more disc-like splats.
- use_mesh_color¶
When
Trueand the mesh exposes per-face colours, sample the SH DC term from the mesh instead of usingcolor.
- source: pathlib.Path¶
- method: Literal['uniform', 'even'] = 'uniform'¶
- async generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- class bundle.gs3d.generators.CubeGenerator(/, **data: Any)[source]¶
Bases:
bundle.gs3d.generators.base.GeneratorGaussians inside (or on the surface of) an axis-aligned cube.
- size¶
Edge length.
- center¶
Cube centre.
- surface¶
When
Truesamples lie on the six faces; otherwise inside.
- async generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- class bundle.gs3d.generators.RandomCloudGenerator(/, **data: Any)[source]¶
Bases:
bundle.gs3d.generators.base.GeneratorUniform random Gaussians inside an axis-aligned bounding box.
- bounds_min¶
Lower corner of the sampling box.
- bounds_max¶
Upper corner.
- async generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- class bundle.gs3d.generators.SphereGenerator(/, **data: Any)[source]¶
Bases:
bundle.gs3d.generators.base.GeneratorGaussians distributed uniformly on (or in) a sphere.
- radius¶
Sphere radius.
- center¶
Sphere centre in world space.
- surface¶
When
Truesamples lie on the surface; otherwise inside.
- async generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- class bundle.gs3d.generators.TorusGenerator(/, **data: Any)[source]¶
Bases:
bundle.gs3d.generators.base.GeneratorGaussians on a torus surface in the XY plane.
- major_radius¶
Distance from torus centre to tube centre (R).
- minor_radius¶
Tube radius (r).
- center¶
Torus centre.
- async generate() bundle.gs3d.ply.GaussianCloudArrays[source]¶
Produce a
GaussianCloudArraysfrom this generator’s parameters.
- bundle.gs3d.generators.create_generator(shape: str, **kwargs) base.Generator[source]¶
Instantiate a generator for the named shape.