loaders.gl
Version:
Framework-independent loaders for 3D graphics formats
22 lines (18 loc) • 463 B
JavaScript
// description: 'PLY - Polygon File Format (aka Stanford Triangle Format)'
// links: ['http://paulbourke.net/dataformats/ply/',
// 'https://en.wikipedia.org/wiki/PLY_(file_format)']
import parsePLY from './parse-ply';
const DEFAULT_OPTIONS = {
normalize: true,
faceNormal: true,
vertexNormal: true,
flip: true
};
export default {
name: 'PLY',
extension: 'ply',
format: 'text',
parseBinary: parsePLY,
parseText: parsePLY,
DEFAULT_OPTIONS
};