@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
19 lines (18 loc) • 714 B
TypeScript
import type { DataTable } from './data-table';
declare const shRestNames: string[];
/**
* Determines how many SH bands (0-3) the DataTable contains beyond the DC
* term. Detection assumes the channel-major layout used throughout the
* codebase: N coefficients per channel, 3 channels, stored as
* `f_rest_0`..`f_rest_(3N-1)`.
*
* - 0 bands: no `f_rest_*` columns
* - 1 band : `f_rest_0`..`f_rest_8` (9 coeffs)
* - 2 bands: `f_rest_0`..`f_rest_23` (24 coeffs)
* - 3 bands: `f_rest_0`..`f_rest_44` (45 coeffs)
*
* @param dataTable - The DataTable to inspect.
* @returns The number of SH bands (0-3).
*/
declare const getSHBands: (dataTable: DataTable) => number;
export { getSHBands, shRestNames };