Jump to content
Sign in to follow this  
dummzeuch

Delphi code for reading a .ply file

Recommended Posts

Does anybody know about (preferably free) Delphi code for reading a .ply (Polygon) file? I'm most interested in the binary format but if the code can also handle the text format that would be a plus.

I'm about to write this myself but I don't want to reinvent the wheel.

Share this post


Link to post
12 hours ago, DelphiUdIT said:

You can try to see if you find anything useful in this project. It can open and view various graphic formats (including "PLY"). It is possible that something is also exposed on pascal the "PLY" and not only in DLLs.

 

https://sourceforge.net/projects/glscene/files/GLScene/GLScene v2.2/

 

This looks promising:

 

https://sourceforge.net/p/glscene/code/HEAD/tree/trunk/Source/GLS.FilePLY.pas

 

Thanks

 

Edit: This seems to only read PLY files in text format.

Edited by dummzeuch

Share this post


Link to post
3 hours ago, dummzeuch said:

Edit: This seems to only read PLY files in text format.

I have no other suggestions, sorry.

I had used that package several years ago only for the purpose of displaying various graphic formats in an application (and I had to display just a PLY coming from a 3D scanner).

 

Good luck

Edited by DelphiUdIT

Share this post


Link to post

GLScene PLY importer is VERY limited and only ASCII.
It reads points for triangles and does not support NORMALS.

It is so close to STL format...

Meshlab sources (in C++) can be useful to check how to read it.

Share this post


Link to post

PLY is "ASCII" if you read the specifications.
Sorry for the previous wrong text... sometimes I write very bad English...
 

Share this post


Link to post
2 hours ago, David Heffernan said:

Does the C library handle binary format?

Which C library?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×