pp
parse-ply
npm i parse-ply
pp

parse-ply

Streaming JavaScript PLY parser

by Mikola Lysenko

0.1.0 (see all)License:MITTypeScript:Not Found
npm i parse-ply
Readme

parse-ply

A streaming PLY parser written in JavaScript.

Usages

First, install using npm:

npm install parse-ply

Then you can create a stream using require. For example, here is some code that parses a PLY file from stdin and dumps the result to stdout:

process.stdin.pipe(require("parse-ply")()).on("data", function(ply) {
  console.log(ply);
});

The properties within the file are all encoded as appropriate typed arrays.

require("parse-ply")()

This creates a streaming PLY parser. To use it, pipe in a stream containing your mesh. When it is done, it will emit a data event that has the parsed PLY file as the main argument.

More Information

To learn more about the PLY file format, here are some links:

You can also view PLY files using standard tools, like MeshLab:

Credits

(c) 2013 Mikola Lysenko. BSD License

Downloads/wk

29

GitHub Stars

15

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

3

OPEN PRs

1
VersionTagPublished
0.1.0
latest
9yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate