pyvista_wasm.examples.download_bunny

Contents

pyvista_wasm.examples.download_bunny#

pyvista_wasm.examples.download_bunny() PolyData#

Download the Stanford Bunny dataset.

Downloads bunny.ply from the PyVista vtk-data repository and returns it as a PolyData mesh, mirroring the pyvista.examples.download_bunny API.

The Stanford Bunny is a widely used 3D test model in computer graphics.

Returns:

The Stanford Bunny mesh.

Return type:

pyvista_wasm.PolyData

Examples

>>> import pyvista_wasm as pv
>>> from pyvista_wasm import examples
>>> mesh = examples.download_bunny()
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(mesh)
>>> plotter.show()