Closed timknip closed 7 months ago
I was under the impression that the glTF spec prohibits mesh primitives from excluding the 'POSITION' attribute, but that seems to be only a warning in the validator:
I suspect there are more operations in glTF Transform that currently assume a 'POSITION' attribute, so I would recommend including one if possible. But as you said, this should probably be fixed — PRs would be welcome, or I'll take a look when I'm able!
Thanks! Fixed by https://github.com/donmccurdy/glTF-Transform/pull/1361.
Describe the bug When one or more of the meshes don't have the POSITION attribute,
bounds
is not calculated correctly and returns[ [ Infinity, Infinity, Infinity], [-Infinity, -Infinity, -Infinity] ]
=> getMeshBounds returns the initial infinite bounds if the mesh has no positions. Then the expandBounds calls here make the result an infinite bounding box.To Reproduce Steps to reproduce the behavior:
Expected behavior A correct bounding box
Versions: 3.10.0
Some check on whether
getMeshBounds
returns a valid bounds seems in order. Or perhaps simply pass in the result bounds.5093-9845273-Merit 2-Drawer Wardrobe.zip