pablode / guc

glTF to USD converter with MaterialX support
Apache License 2.0
107 stars 6 forks source link

Calculate prim extents #2

Closed pablode closed 1 year ago

pablode commented 2 years ago

The USD glossary says:

Gprims are boundable, and should always submit to computing an extent (even if it be an empty extent), and valid UsdGeom scene description should always provide an authored extent on a gprim that captures its changing shape (if its shape is animated).

We therefore should calculate a prim's bounding box and call SetExtentsHint.

pablode commented 1 year ago

Implemented in v0.2.