Box#
- Box(bounds=(- 1.0, 1.0, - 1.0, 1.0, - 1.0, 1.0), level=0, quads=True)[source]#
Create a box with solid faces for the given bounds.
- Parameters
- Returns
pyvista.PolyData
Mesh of the box.
Examples
Create a box with subdivision
level=2
.>>> import pyvista >>> mesh = pyvista.Box(level=2) >>> mesh.plot(show_edges=True)