We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fcf6c9 + 33d31c9 commit c5d3925Copy full SHA for c5d3925
src/common/ply_loader.h
@@ -74,7 +74,7 @@ pybind11::array ply_data_to_array(std::shared_ptr<tinyply::PlyData> attrib) {
74
if (attrib->count == 0) {
75
return pybind11::array(attrib_dtype, std::vector<size_t>({0, 0}));
76
}
77
- size_t bytes_per_scalar = attrib_dtype.elsize();
+ size_t bytes_per_scalar = static_cast<size_t>(attrib_dtype.itemsize());
78
if (bytes_per_scalar <= 0) {
79
throw std::runtime_error("Internal PLY loading error. Type has no defined byte size.");
80
@@ -541,4 +541,4 @@ void save_mesh_ply(std::string filename,
541
plyf.write(outstream_binary, true);
542
543
544
-#endif // PLY_LOADER_H
+#endif // PLY_LOADER_H
0 commit comments