Skip to content

Commit

Permalink
fix ply loader with more data types
Browse files Browse the repository at this point in the history
  • Loading branch information
uhlik committed Oct 22, 2019
1 parent 83a32bd commit 1029b1e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion space_view3d_point_cloud_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,26 @@ class PlyPointCloudReader():
_supported_formats = ('binary_little_endian', 'binary_big_endian', 'ascii', )
_supported_versions = ('1.0', )
_byte_order = {'binary_little_endian': '<', 'binary_big_endian': '>', 'ascii': None, }
_types = {'char': 'c', 'uchar': 'B', 'short': 'h', 'ushort': 'H', 'int': 'i', 'uint': 'I', 'float': 'f', 'double': 'd', }
# _types = {'char': 'c', 'uchar': 'B', 'short': 'h', 'ushort': 'H', 'int': 'i', 'uint': 'I', 'float': 'f', 'double': 'd', }
_types = {
'char': 'b',
'uchar': 'B',
'int8': 'b',
'uint8': 'B',
'int16': 'h',
'uint16': 'H',
'short': 'h',
'ushort': 'H',
'int': 'i',
'int32': 'i',
'uint': 'I',
'uint32': 'I',
'float': 'f',
'float32': 'f',
'float64': 'd',
'double': 'd',
'string': 's',
}

def __init__(self, path, ):
log("{}:".format(self.__class__.__name__), 0)
Expand Down

0 comments on commit 1029b1e

Please sign in to comment.