()
| 131 | |
| 132 | @require_trimesh |
| 133 | def test_mesh_feature_encode_trimesh_object(): |
| 134 | import trimesh |
| 135 | |
| 136 | mesh = trimesh.creation.box() |
| 137 | encoded_example = Mesh().encode_example(mesh) |
| 138 | assert encoded_example.keys() == {"bytes", "path"} |
| 139 | assert encoded_example["path"] == "mesh.glb" |
| 140 | assert encoded_example["bytes"] is not None |
| 141 | decoded_example = Mesh().decode_example(encoded_example) |
| 142 | assert isinstance(decoded_example, trimesh.Scene) |
| 143 | |
| 144 | |
| 145 | def test_require_decoding(): |
nothing calls this directly
no test coverage detected