Skip to main content
Ctrl+K
Logo image

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Section Navigation

  • Mesh Creation
  • Filtering
  • Plotting
    • Anti-Aliasing
    • Setting Backface Properties
    • Background Image
    • Blurring
    • Plotting Bounds
    • Chart Basics
    • Chart Overlays
    • Clearing a Mesh or the Entire Plot
    • Colormap Choices
    • Color Cycling
    • Composite Picking
    • Depth Peeling
    • Depth of Field Plotting
    • Label based on Distance on Line
    • Show Edges
    • Eye Dome Lighting
    • Plot with Floors
    • Hide Cells with Ghosting
    • Create a GIF Movie
    • Render a depth image
    • Interpolate Before Mapping
    • Moving Isovalue
    • Label Points
    • Lighting Properties
    • Linked Views in Subplots
    • Lookup Tables
    • Picking Meshes
    • Create a MP4 Movie
    • Save a Movie Using Glyphs
    • Create a GIF Movie of a Static Object with a Moving Colormap
    • Multi-Window Plot
    • Plot with Opacity
    • Orbiting
    • Orthogonal Slices
    • Physically Based Rendering
    • Plot Scalars Over a Circular Arc
    • Plot Over Line
    • Point Cell Scalars
    • Plotting Point Clouds
    • Picking points on a mesh
    • Customize Scalar Bars
    • Saving Screenshots
    • Types of Shading
    • Silhouette Highlight
    • Plot data in spherical coordinates
    • Surface Space Ambient Occlusion
    • Picking a Point on the Surface of a Mesh
    • Applying Textures
    • Control Global and Local Plotting Themes
    • Topographic Map
    • Plot Vector Component
    • Visible Vertices
    • Volume Rendering
  • Widgets
  • Lighting
  • Advanced
  • Examples
  • Plotting
  • Plot with Floors

Note

Go to the end to download the full example code

Plot with Floors#

Add a floor/wall at the boundary of the rendering scene.

floors
import pyvista as pv
from pyvista import examples

mesh = examples.download_dragon()

plotter = pv.Plotter()
plotter.add_mesh(mesh)
plotter.add_floor('-y')
plotter.add_floor('-z')
plotter.show()

Total running time of the script: ( 0 minutes 1.520 seconds)

Download Python source code: floors.py

Download Jupyter notebook: floors.ipynb

Gallery generated by Sphinx-Gallery

Edit on GitHub

© Copyright 2017-2023, The PyVista Developers.

Built with the PyData Sphinx Theme 0.13.1.