Socket
Book a DemoInstallSign in
Socket

parse-ply

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-ply

A streaming PLY parser

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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:

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

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

require("parse-ply")(stream, cb)

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.

  • stream is a stream object
  • cb(err, data) is callback that is executed once the PLY is fully parsed

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

Keywords

ply

FAQs

Package last updated on 10 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts