UNPKG

@loaders.gl/ply

Version:

Framework-independent loader for the PLY format

56 lines 2.12 kB
import type { LoaderOptions } from '@loaders.gl/loader-utils'; import type { PLYMesh } from "./lib/ply-types.js"; import type { ParsePLYOptions } from "./lib/parse-ply.js"; export type PLYLoaderOptions = LoaderOptions & { ply?: ParsePLYOptions & { /** Override the URL to the worker bundle (by default loads from unpkg.com) */ workerUrl?: string; }; }; /** * Worker loader for PLY - Polygon File Format (aka Stanford Triangle Format)' * links: ['http://paulbourke.net/dataformats/ply/', * 'https://en.wikipedia.org/wiki/PLY_(file_format)'] */ export declare const PLYWorkerLoader: { readonly dataType: PLYMesh; readonly batchType: never; readonly name: "PLY"; readonly id: "ply"; readonly module: "ply"; readonly version: any; readonly worker: true; readonly extensions: ["ply"]; readonly mimeTypes: ["text/plain", "application/octet-stream"]; readonly text: true; readonly binary: true; readonly tests: ["ply"]; readonly options: { readonly ply: {}; }; }; /** * Loader for PLY - Polygon File Format */ export declare const PLYLoader: { readonly parse: (arrayBuffer: ArrayBuffer, options: PLYLoaderOptions | undefined) => Promise<PLYMesh>; readonly parseTextSync: (arrayBuffer: string, options: PLYLoaderOptions | undefined) => PLYMesh; readonly parseSync: (arrayBuffer: ArrayBuffer, options: PLYLoaderOptions | undefined) => PLYMesh; readonly parseInBatches: (arrayBuffer: AsyncIterable<ArrayBufferLike | ArrayBufferView> | Iterable<ArrayBufferLike | ArrayBufferView>, options: PLYLoaderOptions | undefined) => AsyncIterable<PLYMesh>; readonly dataType: PLYMesh; readonly batchType: never; readonly name: "PLY"; readonly id: "ply"; readonly module: "ply"; readonly version: any; readonly worker: true; readonly extensions: ["ply"]; readonly mimeTypes: ["text/plain", "application/octet-stream"]; readonly text: true; readonly binary: true; readonly tests: ["ply"]; readonly options: { readonly ply: {}; }; }; //# sourceMappingURL=ply-loader.d.ts.map