pyvista_wasm.examples.download_lucy

Contents

pyvista_wasm.examples.download_lucy#

pyvista_wasm.examples.download_lucy() PolyData#

Download the Lucy Angel dataset.

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

The Lucy Angel is a statue from The Stanford 3D Scanning Repository, decimated to approximately 100k triangles.

Returns:

The Lucy Angel mesh.

Return type:

pyvista_wasm.PolyData

Examples

>>> import pyvista_wasm as pv
>>> from pyvista_wasm import examples
>>> dataset = examples.download_lucy()
>>> flame_light = pv.Light(
...     color=[0.886, 0.345, 0.133],
...     position=[716, -29, 1000],
...     intensity=5.0,
...     positional=True,
...     cone_angle=90,
...     attenuation_values=(0.001, 0.005, 0),
... )
>>> scene_light = pv.Light(intensity=0.5)
>>> pl = pv.Plotter(lighting=None)
>>> _ = pl.add_mesh(dataset, smooth_shading=True)
>>> pl.add_light(flame_light)
>>> pl.add_light(scene_light)
>>> pl.background_color = "black"
>>> pl.view_xz()
>>> pl.show()