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

make_rounded_uvcylinder segmentation fault #1417

Closed podd0 closed 1 year ago

podd0 commented 1 year ago

The function does access on shape.normals, which is empty (maybe this is the actual error). I tried adding the line shape.normals.resize(shape.positions.size());, but the generated model looks like this Screenshot from 2022-12-22 16-40-39

xelatihy commented 1 year ago

This bug will not be fixed in the main release, which is frozen now. I will fix it in the coming one.