# Examples from pyvista.examples.downloads.download_doorman
# =========================================================

# Import the OBJ file with its materials into a `Plotter`.
import pyvista as pv
from pyvista import examples
file = examples.download_doorman(load=False)
pl = pv.Plotter()
pl.import_obj(file)
pl.view_xy()
pl.show()

# Get the imported mesh as a `MultiBlock` and plot
# it without the textures.
pl = pv.Plotter()
pl.import_obj(file)
dataset = pv.MultiBlock(pl.meshes)
dataset.plot(cpos='xy')

# SEE ALSO:
#     Doorman Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#doorman-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Load and Plot from a File https://docs.pyvista.org/examples/00-load/read_file.html#read-file-example
#     Example using this dataset.

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

