parseSplatSpz function
SplatCloud
parseSplatSpz(
- Uint8List bytes, {
- SplatAxes axes = SplatAxes.rightUpBack,
- bool keepHigherBands = true,
- SplatColourSpace colourSpace = SplatColourSpace.srgb,
The cloud in bytes, or a thrown SplatSpzException saying why not.
Reads versions 1 to kSpzLatestVersion. axes turns the cloud into a
PLY's axes when asked. keepHigherBands false drops the spherical
harmonics above band 0 — a third of an SPZ's decoded floats at degree 3,
which nothing in the draw evaluates yet. colourSpace is what the colour
bytes were fitted in, sRGB unless told otherwise, as for a PLY — see
splatColour.
Implementation
SplatCloud parseSplatSpz(
Uint8List bytes, {
SplatAxes axes = SplatAxes.rightUpBack,
bool keepHigherBands = true,
SplatColourSpace colourSpace = SplatColourSpace.srgb,
}) {
final packed = _unpack(bytes);
return _decode(packed, axes, keepHigherBands, colourSpace);
}