ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter
598 stars 118 forks source link

Using std::vector for propertyKeys ? #26

Closed luxigo closed 4 years ago

luxigo commented 5 years ago

I do not want the propertyKeys hardcoded eg for request_properties_from_element(), I want to use std::vector instead of std::initializer_list to allow specifying the property names dynamically.

Maybe there's an obvious solution I cannot see (instead of patching tinyply.h)

My native language is C, I am not as fluent in C++ ... type casting tricks I tried based on what I read on stackoverflow failed, maybe they were dependent on the compiler (options?) or the standard library implementation, anyway I could not manage to make it work with g++

Thanks in advance !

ddiakopoulos commented 4 years ago

Hi @luxigo sorry to revive this ancient issue, but I finally fixed this in d5115d669a136bcdaf086bb683ff5bfeb06234ac