# Examples from pyvista.Actor.texture
# ===================================

# Create an actor and add a texture to it. Note how the
# `pyvista.PolyData` has texture coordinates by default.
import pyvista as pv
from pyvista import examples
plane = pv.Plane()
plane.active_texture_coordinates is not None
pl = pv.Plotter()
actor = pl.add_mesh(plane)
actor.texture = examples.download_masonry_texture()
actor.texture

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

