pyvista_js.examples.download_masonry_texture

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 Texture object.

戻り値:

Texture wrapping the masonry image URL.

戻り値の型:

Texture

サンプル

>>> 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()