.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/4_applications/plot_0_browser.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_4_applications_plot_0_browser.py: Browse a sequence of shapes =========================== A Browser can be used to visualize a sequence of shapes. The user can navigate through the sequence via a slider. .. GENERATED FROM PYTHON SOURCE LINES 8-31 .. code-block:: Python import pyvista as pv import skshapes as sks # sphinx_gallery_thumbnail_path = 'source/images/demo_browser.gif' source = sks.PolyData("../data/cactus/cactus3.ply") target = sks.PolyData("../data/cactus/cactus11.ply") loss = sks.L2Loss() model = sks.IntrinsicDeformation(n_steps=5) registration = sks.Registration( model=model, loss=loss, optimizer=sks.LBFGS(), n_iter=1, regularization_weight=0, ) registration.fit(source=source, target=target) .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 32-39 Browser if you are running this script locally, the vedo window containing the  browser will be displayed. The, you can navigate through the sequence of  shapes using the slider and adjust the camera position. .. image:: ../../images/demo_browser.gif .. GENERATED FROM PYTHON SOURCE LINES 39-43 .. code-block:: Python if not pv.BUILDING_GALLERY: app = sks.Browser(registration.path_) app.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.192 seconds) .. _sphx_glr_download_auto_examples_4_applications_plot_0_browser.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_0_browser.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_0_browser.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_