xelatihy / yocto-gl

Yocto/GL: Tiny C++ Libraries for Data-Driven Physically-based Graphics
https://xelatihy.github.io/yocto-gl
2.78k stars 203 forks source link

Bug in save_ply #1439

Open cengzezou opened 10 months ago

cengzezou commented 10 months ago

Nice work! Just spot an IO bug. Pretty sure in the ascii part of save_ply , all idx in switch (prop.type) should be replaced by pidx (if you look at the binary counterpart)