Skip to content

Documentation / @imvu/cal3d / load

Function: load() ​

ts
function load(input): Cal3DFile;

Defined in: packages/cal3d/src/load.ts:24

Parse any Cal3D file, binary or XML, identifying its kind from its contents.

ts
const file = load(bytes);
if (file.kind === 'mesh') console.log(file.value.submeshes.length);

Parameters ​

ParameterType
inputCal3DInput

Returns ​

Cal3DFile

Released under the MIT License.