Skip to content

Commit

Permalink
Merge pull request #104 from SciKit-Surgery/103-pointerspheres
Browse files Browse the repository at this point in the history
103 pointerspheres
  • Loading branch information
thompson318 committed Aug 11, 2022
2 parents 3bb0419 + 51a53b3 commit 115a9ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sksurgerybard/visualisation/bard_visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def configure_model_and_ref(configuration, transform_manager):
model_visibilities = model_config.get('model_visibilities', [1])
model_opacities = model_config.get('model_opacities', [1.0])
model_representations = model_config.get('model_representations', ['s'])
else:
transform_manager.add("modelreference2camera",
np.eye(4, dtype = np.float64))

if models_path is not None:
try:
Expand Down
3 changes: 2 additions & 1 deletion sksurgerybard/widgets/bard_overlay_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def __init__(self, configuration = None, calib_dir = None):
"camera2modelreference")
self.vtk_overlay_window.set_camera_pose(camera2modelreference)
except ValueError:
pass
self.transform_manager.add("camera2modelreference",
np.eye(4, dtype = np.float64))

if not os.path.isdir(outdir):
os.mkdir(outdir)
Expand Down

0 comments on commit 115a9ca

Please sign in to comment.