|
26 | 26 | "uint": _PlyTypeData(4, "I", np.uint32),
|
27 | 27 | "float": _PlyTypeData(4, "f", np.float32),
|
28 | 28 | "double": _PlyTypeData(8, "d", np.float64),
|
| 29 | + "int8": _PlyTypeData(1, "b", np.byte), |
| 30 | + "uint8": _PlyTypeData(1, "B", np.ubyte), |
| 31 | + "int16": _PlyTypeData(2, "h", np.short), |
| 32 | + "uint16": _PlyTypeData(2, "H", np.ushort), |
| 33 | + "int32": _PlyTypeData(4, "i", np.int32), |
| 34 | + "uint32": _PlyTypeData(4, "I", np.uint32), |
| 35 | + "float32": _PlyTypeData(4, "f", np.float32), |
| 36 | + "float64": _PlyTypeData(8, "d", np.float64), |
29 | 37 | }
|
30 | 38 |
|
31 | 39 | _Property = namedtuple("_Property", "name data_type list_size_type")
|
@@ -84,9 +92,9 @@ def is_constant_type_fixed_size(self) -> bool:
|
84 | 92 | """
|
85 | 93 | if not self.is_fixed_size():
|
86 | 94 | return False
|
87 |
| - first_type = self.properties[0].data_type |
| 95 | + first_type = _PLY_TYPES[self.properties[0].data_type] |
88 | 96 | for property in self.properties:
|
89 |
| - if property.data_type != first_type: |
| 97 | + if _PLY_TYPES[property.data_type] != first_type: |
90 | 98 | return False
|
91 | 99 | return True
|
92 | 100 |
|
|
0 commit comments