Skip to content

Commit

Permalink
Fixed Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd-de authored Sep 23, 2024
1 parent d891fed commit af6a54d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions znvis/visualizer/headless_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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],
Expand All @@ -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,
Expand Down

0 comments on commit af6a54d

Please sign in to comment.