Crate ply2splat

Crate ply2splat 

Source
Expand description

§ply2splat

ply2splat is a high-performance library and CLI tool for converting Gaussian Splatting PLY files into a compact, optimized binary format suitable for real-time rendering.

§Features

  • Fast Parsing: Uses ply-rs for robust PLY parsing.
  • Parallel Processing: Leverages rayon for multi-threaded conversion and sorting (when the parallel feature is enabled).
  • Optimized Output: Produces a dense, memory-efficient binary format (32 bytes per splat).
  • Sorting: Automatically sorts splats by importance (volume * opacity) and spatial position for deterministic rendering order.

Modules§

cli

Structs§

PlyGaussian
Represents a raw Gaussian Splat read from a PLY file.
SplatPoint
Represents a processed Gaussian Splat ready for serialization. Layout is exactly 32 bytes packed: 3 floats, 3 floats, 4 u8, 4 u8.

Functions§

convert
Converts PLY data bytes to SPLAT format bytes.
convert_file
Converts a PLY file to a SPLAT file.
load_ply
Loads a PLY file and parses it into a vector of PlyGaussian.
load_ply_from_bytes
Loads PLY data from a byte slice and parses it into a vector of PlyGaussian.
ply_to_splat
Converts a list of PlyGaussian structs into the optimized SplatPoint format.
save_splat
Saves a slice of SplatPoints to a file in a raw binary format.
splats_to_bytes
Converts a slice of SplatPoints to raw bytes.