molaR_Clean: Clean up problem ply files

Description Usage Arguments Details


Function will remove floating verticies, and faces with zero area. These can cause issues when using molaR's primary functions of DNE, RFI, and OPC


molaR_Clean(plyFile, cleanType = "Both")



An object of classes 'mesh3d' and 'shape3d'


logical asking what to clean, Verticies, Faces or Both. Defaults to Both.


This function cleans up problematic ply files. Some smoothed files will have faces of zero area, or floating verticies. DNE and OPC cannot be calculated on these files. Running the plys through this function will allow those calculations to be made.

Search within the molaR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.