Determines the input format based on file extension.
The filename to analyze.
The detected input format.
Error if the file extension is not recognized.
const format = getInputFormat('scene.ply'); // returns 'ply'const format2 = getInputFormat('scene.splat'); // returns 'splat' Copy
const format = getInputFormat('scene.ply'); // returns 'ply'const format2 = getInputFormat('scene.splat'); // returns 'splat'
Determines the input format based on file extension.