Determines the output format based on file extension and options.
The filename to analyze.
Options that may affect format selection.
The detected output format.
Error if the file extension is not recognized.
const format = getOutputFormat('scene.ply', {}); // returns 'ply'const format2 = getOutputFormat('scene.sog', {}); // returns 'sog-bundle' Copy
const format = getOutputFormat('scene.ply', {}); // returns 'ply'const format2 = getOutputFormat('scene.sog', {}); // returns 'sog-bundle'
Determines the output format based on file extension and options.