pyvista_wasm.examples.download_masonry_texture

pyvista_wasm.examples.download_masonry_texture#

pyvista_wasm.examples.download_masonry_texture() Texture#

Download the masonry texture dataset.

Downloads a brick masonry image from the PyVista data repository and returns it as a Texture object.

Returns:

Texture wrapping the masonry image URL.

Return type:

Texture

Examples

>>> import pyvista_wasm as pv
>>> from pyvista_wasm import examples
>>> texture = examples.download_masonry_texture()
>>> surf = pv.Cylinder()
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(surf, texture=texture)
>>> plotter.show()