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

    Function getInputFormat

    • Determines the input format based on file extension.

      Parameters

      • filename: string

        The filename to analyze.

      Returns InputFormat

      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'