gz-usd icon indicating copy to clipboard operation
gz-usd copied to clipboard

Add round-trip conversion tests and verify same number of entities before and after

Open scpeters opened this issue 5 months ago • 0 comments

Desired behavior

Several recent bugs have noted that some entities that are properly converted by sdf2usd are not properly converted back by usd2sdf:

  • #41
  • #42

The reproduction instructions in those issues describe converting an SDFormat file to USD using sdf2usd and then back again to SDFormat using usd2sdf. Without expecting that the SDFormat files before and after the round-trip conversion should be identical, we should expect the same number of entities (links, collisions, visuals, shape geometries, joints, etc) in both SDFormat files. It would be useful to have testing infrastructure to enable this type of round-trip testing to enable entity counts.

Alternatives considered

Implementation suggestion

Additional context

scpeters avatar Oct 03 '24 19:10 scpeters