pyvista_wasm.examples.download_lucy#
- pyvista_wasm.examples.download_lucy() PolyData#
Download the Lucy Angel dataset.
Downloads
lucy.plyfrom the PyVista vtk-data repository and returns it as aPolyDatamesh, mirroring thepyvista.examples.download_lucyAPI.The Lucy Angel is a statue from The Stanford 3D Scanning Repository, decimated to approximately 100k triangles.
- Returns:
The Lucy Angel mesh.
- Return type:
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()