From 8d13283343891b16e1dd7aa2ec1dc5d5712ebd4c Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 24 Nov 2023 06:13:09 -0800 Subject: [PATCH] Added new required functions in new Trimesh version in GFileResolver PiperOrigin-RevId: 585078419 --- tensorflow_graphics/io/triangle_mesh.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tensorflow_graphics/io/triangle_mesh.py b/tensorflow_graphics/io/triangle_mesh.py index 8bcb540d0..0def5c579 100644 --- a/tensorflow_graphics/io/triangle_mesh.py +++ b/tensorflow_graphics/io/triangle_mesh.py @@ -37,6 +37,12 @@ def get(self, name): data = f.read() return data + def write(self, name, data): + raise NotImplementedError('writing not implemented in GFileResolver') + + def namespaced(self, namespace): + raise NotImplementedError('namespaced not implemented in GFileResolver') + def load(file_obj, file_type=None, **kwargs): """Loads a triangle mesh from the given GFile/file path.