splat-transform API Reference - v1.0.0
    Preparing search index...

    Function getOutputFormat

    • Determines the output format based on file extension and options.

      Parameters

      • filename: string

        The filename to analyze.

      • options: Options

        Options that may affect format selection.

      Returns OutputFormat

      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'