UNPKG

@loaders.gl/ply

Version:

Framework-independent loader for the PLY format

21 lines 623 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { PLYWorkerLoader } from "./ply-loader.js"; import { convertMeshToTable } from '@loaders.gl/schema-utils'; import { parsePLY } from "./lib/parse-ply.js"; /** * Worker loader for PLY - */ export const PLYArrowLoader = { ...PLYWorkerLoader, dataType: null, batchType: null, worker: false, parse: async (arrayBuffer) => { const mesh = parsePLY(arrayBuffer); const arrowTable = convertMeshToTable(mesh, 'arrow-table'); return arrowTable; } }; //# sourceMappingURL=ply-arrow-loader.js.map