Skip to content

Commit 95707fb

Browse files
bottlerfacebook-github-bot
authored andcommitted
PLY pointcloud loading
Summary: Allow PLY files to not contain faces. Allow loading pointclouds with color, at least encoded according to the way of some cloudcompare examples. TODO: Allow vertex normals to be read, and allow vertex colors to be written. Make the return type of load_ply something more user friendly, like a dict. Noticed in #209 Reviewed By: nikhilaravi Differential Revision: D22573314 fbshipit-source-id: 72ba1f7c6417f5dfc83f2ebf359eff017057635c
1 parent 3b9fbfc commit 95707fb

File tree

3 files changed

+423
-93
lines changed

3 files changed

+423
-93
lines changed

pytorch3d/io/pluggable.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from .obj_io import MeshObjFormat
1414
from .pluggable_formats import MeshFormatInterpreter, PointcloudFormatInterpreter
15-
from .ply_io import MeshPlyFormat
15+
from .ply_io import MeshPlyFormat, PointcloudPlyFormat
1616

1717

1818
"""
@@ -74,6 +74,7 @@ def __init__(
7474
def register_default_formats(self) -> None:
7575
self.register_meshes_format(MeshObjFormat())
7676
self.register_meshes_format(MeshPlyFormat())
77+
self.register_pointcloud_format(PointcloudPlyFormat())
7778

7879
def register_meshes_format(self, interpreter: MeshFormatInterpreter) -> None:
7980
"""

0 commit comments

Comments
 (0)