Skip to content

Commit

Permalink
Merge pull request #6197 from nilsvu/pv_bbh_zoom
Browse files Browse the repository at this point in the history
Add zoom to BBH rendering script
  • Loading branch information
knelli2 authored Aug 4, 2024
2 parents e338be1 + 130a6ba commit e12c810
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Visualization/Python/Render3D/Bbh.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def render_bbh(
time_step: int = 0,
animate: bool = False,
camera_angle: str = "Side",
zoom_factor: float = 1.0,
color_map: str = "Rainbow Uniform",
show_grid: bool = False,
show_time: bool = False,
Expand Down Expand Up @@ -186,6 +187,9 @@ def render_bbh(
]
render_view.CameraViewUp = [0.0, 0.0, 1.0]
render_view.CameraParallelScale = 519.6152422706632
camera = pv.GetActiveCamera()
pv.ResetCamera()
camera.Zoom(zoom_factor)

# Simulation time
if show_time:
Expand Down Expand Up @@ -262,6 +266,7 @@ def render_bbh(
" inbetween Side and Top view"
),
)
@click.option("zoom_factor", "--zoom", help="Zoom factor.", default=1.0)
@click.option(
"--color-map",
"-m",
Expand Down

0 comments on commit e12c810

Please sign in to comment.