Skip to main content

encode_spz

Function encode_spz 

Source
pub fn encode_spz(
    cloud: &SplatCloud,
    antialiased: bool,
) -> Result<Vec<u8>, GeolithError>
Expand description

Encode a splat cloud as a gzip-compressed SPZ packet.

Positions must already be tile-local; antialiased sets the header flag that tells the renderer the splats were trained with antialiasing.

§Errors

Returns GeolithError::SplatTiles when the cloud has inconsistent attribute lengths, an unsupported spherical harmonic degree, or a position outside the fixed-point range.