File Exchange

image thumbnail

PLY File Utilities

version (2.94 KB) by Gregory Vernon
A repository of utility functions/scripts for processing PLY files in Matlab


Updated 14 Mar 2016

View License

Goal: Provide basic functionality for ASCII PLY files as an alternative to the ubiquitous STL file format. PLY files utilize face-vertex connectivity to ensure water-tightness, which is critical in additive manufacturing. Advanced formats such as the Additive Manufacturing File (AMF: or the 3D Manufacturing File (3MF: also use face-vertex connectivity, but these formats are XML based and so are a bit messy and overly complicated for the average researcher to use. The PLY file is a compact format that is also easy to read & write, thus provides a good platform for additive manufacturing researchers to utilize as they develop their algorithms.
Note: I apologize for the "messiness" of the code, this code was developed at work and undergoes a lengthy approval process for release. I am working on cleaning up the code and adding functionality (e.g. plySlicer is only a script at the moment, no error-checking, sparse comments etc.), but am releasing now to make available ASAP.

The Department of Energy’s National Security Campus is operated and managed by Honeywell Federal Manufacturing & Technologies, LLC under contract number DE-NA0002839

Cite As

Gregory Vernon (2019). PLY File Utilities (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

I have been using 3D scanner to capture some point cloud data of small object.
1. How to convert from point cloud data to meshes the format of my data is in .ply
2. And how can I fill "holes" in the model due to missing views example the top and the bottom side of my model.

please any guidance
thank you

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux