@loaders.gl/draco
Version:
Framework-independent loader and writer for Draco compressed meshes and point clouds
20 lines • 597 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import { DracoLoader } from "./draco-loader.js";
import { convertMeshToTable } from '@loaders.gl/schema-utils';
/**
* Loader for Draco3D compressed geometries
*/
export const DracoArrowLoader = {
...DracoLoader,
dataType: null,
worker: false,
parse
};
async function parse(arrayBuffer, options) {
const mesh = await DracoLoader.parse(arrayBuffer, options);
const arrowTable = convertMeshToTable(mesh, 'arrow-table');
return arrowTable;
}
//# sourceMappingURL=draco-arrow-loader.js.map