centreborelli / pypotree

22 stars 6 forks source link

Show Example on How to read .ply files #1

Closed ucalyptus closed 3 years ago

gfacciol commented 3 years ago

You can use plyfile to read the vertex data from a ply file:

import plyfile
import numpy
pd = plyfile.PlyData.read('yourfile.ply')
xyz=numpy.vstack( [pd['vertex']['x'],  pd['vertex']['y'],  pd['vertex']['z']] ).T
ucalyptus commented 3 years ago

Thanks @gfacciol

jiapei100 commented 2 years ago

@gfacciol

What is the relationship between plyfile and pypotree???

gfacciol commented 2 years ago

plyfile writes ply files, pypotree writes potree data structures, which are optimized for very large point clouds.

On Tue, Jul 12, 2022 at 5:14 AM Pei JIA @.***> wrote:

@gfacciol https://github.com/gfacciol

What is the relationship between plyfile and pypotree???

— Reply to this email directly, view it on GitHub https://github.com/centreborelli/pypotree/issues/1#issuecomment-1181266407, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGFI2RJK55FLR7XNAUU3I3VTTPJRANCNFSM46WQ3LKA . You are receiving this because you were mentioned.Message ID: @.***>