Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also allow "vertex_index" in ply files #254

Merged
merged 2 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyntcloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .core_class import PyntCloud
from .core_class import PyntCloud
2 changes: 1 addition & 1 deletion pyntcloud/io/ply.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def read_ply(filename):
# element mesh
if b'list' in line:

if b"vertex_indices" in line[-1]:
if b"vertex_indices" in line[-1] or b"vertex_index" in line[-1]:
daavoo marked this conversation as resolved.
Show resolved Hide resolved
mesh_names = ["n_points", "v1", "v2", "v3"]
else:
has_texture = True
Expand Down