Chevron Down
Table of Contents
Chevron DownAPI Reference

PLYLoader

The PLYLoader parses simple meshes in the Polygon File Format or the Stanford Triangle Format.

LoaderCharacteristic
File Extension.ply
File TypeBinary/Text
File FormatPLY
Data FormatMesh
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Usage

import {PLYLoader, PLYWorkerLoader} from '@loaders.gl/ply';
import {load} from '@loaders.gl/core';

// Decode on main thread
const data = await load(url, PLYLoader, options);
// Decode on worker thread
const data = await load(url, PLYWorkerLoader, options);

Options

OptionTypeDefaultDescription