Logo image Logo image
  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras
  • Creating an Explicit Structured Grid
  • Geometric Objects
  • Create a Kochanek Spline
  • Parametric Geometric Objects
  • Pixel Art of ALIEN MONSTERS
  • Platonic Solids
  • Create Point Cloud
  • Create a PointSet
  • Create PolyData
  • Creating a Spline
  • Creating a Structured Surface
  • Drape 2D Surface From Line
  • Create Triangulated Surface
  • Plot Truss-like FEA Solution with Cylinders
  • Creating a Uniform Grid
  • Creating an Unstructured Grid
  • Working with glTF Files
  • Working with VRML Files
  • Read FEniCS/Dolfin Meshes
  • Load and Plot from a File
  • Read Image Files
  • Parallel Files
  • Load data using a Reader
  • Terrain Following Mesh
  • Wrapping Other Objects
  • Boolean Operations
  • Extract Cell Centers
  • Clipping with a Surface
  • Clipping with Planes & Boxes
  • Collision
  • Computing Surface Normals
  • Volumetric Analysis
  • Connectivity
  • Contouring
  • Decimation
  • Distance Between Two Surfaces
  • Extract Cells Inside Surface
  • Extract Edges
  • Extract Surface
  • Extrude Rotation
  • Extrude Trim
  • Marching Cubes
  • Gaussian Smoothing
  • Geodesic Paths
  • Plotting Glyphs (Vectors or PolyData)
  • Table of Glyphs
  • Compute Gradients of a Field
  • Integrate Data
  • Interpolating
  • Computing Mesh Quality
  • Ray Tracing
  • Project to a Plane
  • Reflect Meshes
  • Resampling
  • Rotations
  • Sample Function: Perlin Noise in 2D
  • Sample Function: Perlin Noise in 3D
  • Slicing
  • Streamlines
  • 2D Streamlines
  • Subdivide Cells
  • Surface Smoothing
  • Surface Reconstruction
  • Using Common Filters
  • Voxelize a Surface Mesh
  • Warping by Vectors
  • Background Image
  • Plotting Bounds
  • Chart Basics
  • Chart Overlays
  • Clearing a Mesh or the Entire Plot
  • Colormap Choices
  • Depth Peeling
  • 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
  • Picking Meshes
  • Create a MP4 Movie
  • 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
  • Picking points on a mesh
  • Customize Scalar Bars
  • Saving Screenshots
  • Types of Shading
  • Silhouette Highlight
  • Plot data in spherical coordinates
  • Picking a Point on the Surface of a Mesh
  • Applying Textures
  • Control Global and Local Plotting Themes
  • Topographic Map
  • Plot Vector Component
  • Volume Rendering
  • Box Widget
  • Checkbox Widget
  • Line Widget
  • Multiple Slider Widgets
  • Plane Widget
  • Slider Bar Widget
  • Sphere Widget
  • Spline Widget
  • Light Actors
  • Attenuation
  • Beam Shape
  • Light Types
  • Disabling Mesh Lighting
  • Plotter Lighting Systems
  • Shadows
  • Compare Field Across Mesh Regions
  • Extending PyVista
  • Plot OpenFOAM data
  • Plot Open Street Map Data
  • Visualize the Moeller–Trumbore Algorithm
  • Ray Tracing
  • Displaying eigenmodes of vibration using warp_by_vector

Note

Click here 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 3.220 seconds)

Download Python source code: floors.py

Download Jupyter notebook: floors.ipynb

Gallery generated by Sphinx-Gallery

© Copyright 2017-2022, The PyVista Developers.

Created using Sphinx 4.5.0.