pyvista_js.examples.download_masonry_texture#
- pyvista_js.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
Textureobject.- Returns:
Texture wrapping the masonry image URL.
- Return type:
Examples
>>> import pyvista_js as pv >>> from pyvista_js import examples >>> texture = examples.download_masonry_texture() >>> surf = pv.Cylinder() >>> plotter = pv.Plotter() >>> _ = plotter.add_mesh(surf, texture=texture) >>> plotter.show()