Skip to content

Commit

Permalink
[bugfix] fix utf-8 decode error in utils/s2p_to_potree.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carlodef committed Apr 8, 2019
1 parent ea3c145 commit 630e259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/s2p_to_potree.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import os
import json
import argparse
from codecs import open

import s2p
from s2p import common
Expand Down Expand Up @@ -159,7 +160,7 @@ def produce_potree(s2poutdir, potreeoutdir):


def plyvertex(fname):
with open(fname) as f:
with open(fname, 'r', 'utf-8') as f:
for x in f:
if x.split()[0] == 'element' and x.split()[1] == 'vertex':
return int(x.split()[2])
Expand Down

0 comments on commit 630e259

Please sign in to comment.