pythonply-file-format

Python plyfile vs pymesh


I need to read, manipulate and write PLY files in Python. PLY is a format for storing 3D objects. Through a simple search I've found two relevant libraries, PyMesh and plyfile. Has anyone had any experience with either of them, and does anyone have any recommendations? plyfile seems to have been dormant for a year now, judging by Github.

I know this question instigates opinion-based answers but I don't really know where else to ask this question.


Solution

  • I have succesfully used plyfile while working with pointclouds.

    It's true that the poject had not presented any activity from a long time, but It meets its purpose.

    And is not like the fact of parsing a ply file were something that allows you to recreate yourself by adding new features.

    On the other hand PyMesh offers you many other features besides parsing ply files.

    So maybe the question is:

    Do you want to just 'read, manipulate and write PLY files' or are you looking for a library that provides more extra features?

    What made me choose plyfile was that I'm able to incorporate it to my project by just copying 1 source file. Also I wasn't interested in any of the other features that PyMesh offers.


    Update

    I ended writing my own functions to read/write ply files (supporting ascii and binary) because I found the plyfile source code a little messy.

    If anyone is interested, here is a link to the file: ply reader/writer