From af6a54d52f85c203c1051d7f292be169a17e11bf Mon Sep 17 00:00:00 2001 From: jdrotleff <151064457+jpd-de@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:07:36 +0200 Subject: [PATCH] Fixed Formatting --- znvis/visualizer/headless_renderer.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/znvis/visualizer/headless_renderer.py b/znvis/visualizer/headless_renderer.py index d4f46a5..1389b37 100644 --- a/znvis/visualizer/headless_renderer.py +++ b/znvis/visualizer/headless_renderer.py @@ -114,7 +114,7 @@ def __init__( else: self.number_of_steps = min(len_list) - self.output_folder = pathlib.Path(output_folder) + self.output_folder = pathlib.Path(output_folder).resolve() self.frame_folder = self.output_folder / "video_frames" self.video_format = video_format self.renderer_resolution = renderer_resolution @@ -195,24 +195,24 @@ def save_callable(): for item in self.vector_field: if item.static: mesh_dict[item.name] = { - "mesh": item.mesh_list[0], - "bsdf": item.mesh.material.mitsuba_bsdf, - "material": item.mesh.o3d_material, - } + "mesh": item.mesh_list[0], + "bsdf": item.mesh.material.mitsuba_bsdf, + "material": item.mesh.o3d_material, + } else: mesh_dict[item.name] = { "mesh": item.mesh_list[self.counter], "bsdf": item.mesh.material.mitsuba_bsdf, "material": item.mesh.o3d_material, } - + for item in self.particles: if item.static: mesh_dict[item.name] = { "mesh": item.mesh_list[0], "bsdf": item.mesh.material.mitsuba_bsdf, "material": item.mesh.o3d_material, - } + } else: mesh_dict[item.name] = { "mesh": item.mesh_list[self.counter], @@ -222,7 +222,6 @@ def save_callable(): self.output_folder.mkdir(parents=True, exist_ok=True) self.frame_folder.mkdir(parents=True, exist_ok=True) - self.renderer.render_mesh_objects( mesh_dict, self.view_matrix,