@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
23 lines (22 loc) • 831 B
TypeScript
import { DataTable } from './data-table';
/**
* Combines multiple DataTables into a single DataTable.
*
* Merges rows from all input tables. Columns are matched by name and type;
* columns that don't exist in all tables will have undefined values for
* rows from tables lacking that column.
*
* If tables have differing source transforms, all data is first converted
* to engine coordinate space (identity transform) before combining.
*
* @param dataTables - Array of DataTables to combine.
* @returns A new DataTable containing all rows from all input tables.
*
* @example
* ```ts
* const combined = combine([tableA, tableB, tableC]);
* console.log(combined.numRows); // tableA.numRows + tableB.numRows + tableC.numRows
* ```
*/
declare const combine: (dataTables: DataTable[]) => DataTable;
export { combine };