Skip to content

Commit

Permalink
Fix view_init of Open3D visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Jan 5, 2024
1 parent c45e817 commit 96c5676
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pytransform3d/visualizer/_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ def view_init(self, azim=-60, elev=30):
pcp.extrinsic = pt.transform_from( # world2camera
R=R_elev_azim_camera2world.T,
p=[0, 0, distance])
vc.convert_from_pinhole_camera_parameters(pcp)
try:
vc.convert_from_pinhole_camera_parameters(
pcp, allow_arbitrary=True)
except TypeError:
vc.convert_from_pinhole_camera_parameters(pcp)

def plot(self, P, c=(0, 0, 0)):
"""Plot line.
Expand Down

0 comments on commit 96c5676

Please sign in to comment.