I have a question about PLY file load.
I have two PLY files.
(A) PLY file: It made by 3D Scanner.
(B) PLY file: The sample PLY file from the link.
The B file work normally but A file is not working on the same code.
My code snippet is as below:
vtkSmartPointer pPLYReader =
vtkSmartPointer mapper =
vtkSmartPointer actor =
vtkSmartPointer renderer =
renderer->SetBackground(.1, .2, .3);
I don’t know why A file is not working.
Unfortunately, I can’t upload the file.
Could you please advise me about loading the PLY file?
Have a good day
What version of VTK are you using? Can you try with master?
Can you try with VTK from the master branch
We had a PLY fix going in that did not make it in 8.2
I tried to load my PLY file with VTK from the master branch.
But the symptom is the same…
Do you think, does the code have no problem?
I want to check the code is okay.
If yes, I think the PLY file has a problem.
What is the error you are seeing?
You can try loading that file in meshlab, to see if that program loads it.
If you can share your file privately, I can take a look at it. My email is my first name dot my last name at kitware.com
I sent you my PLY file by email.
Note that you never need to reveal your email address if you use discourse. You can send private message by clicking on the user’s photo then on the “Message” button in the top-right corner.
Thanks for sending me the file.
I took a look at it in ParaView. The problem with it is that it does not have any cells, so the default representation - surface shows nothing.
The Point Gaussian representation works.
For VTK, try
Thanks Andras, I’ll keep this in mind.
I use discourse through email, so I have not seen the actual site that much.
Thank you for your support!
Finally, I can be rendering my PLY file.
But why my PLY file is only used by vtkPointGaussianMapper?
(Why the data has not any cells?)
Raw data that surface scanners acquire is just a point cloud (no cells). Some surface scanners come with sophisticated surface reconstruction software (that can merge surfaces, filter outliers, map texture, etc.). If you don’t have access to such software then you may try the few basic surface reconstructor filters that are available in VTK (vtkSurfaceReconstructionFilter, PoissonExtractSurface, PowercrustExtractSurface).
Thank you everyone so much!
It was very helpful for me!