pyvista_wasm.examples.download_sky_box_cube_map

pyvista_wasm.examples.download_sky_box_cube_map#

pyvista_wasm.examples.download_sky_box_cube_map() CubeMap#

Download the skybox cube map dataset.

Downloads six face images of the sky box cubemap from the PyVista data repository and returns them as a CubeMap object.

Returns:

Cubemap containing the six skybox face image URLs.

Return type:

CubeMap

Examples

>>> import pyvista_wasm as pv
>>> from pyvista_wasm import examples
>>> cubemap = examples.download_sky_box_cube_map()
>>> plotter = pv.Plotter()
>>> plotter.set_environment_texture(cubemap)
>>> mesh = pv.Sphere()
>>> _ = plotter.add_mesh(mesh, color='white', pbr=True, metallic=0.8, roughness=0.1)
>>> plotter.show()