Box

Box(bounds=(- 1.0, 1.0, - 1.0, 1.0, - 1.0, 1.0), level=0, quads=True)

Create a box with solid faces for the given bounds.

Parameters
boundsiterable, optional

Specify the bounding box of the cube. (xMin, xMax, yMin, yMax, zMin, zMax).

levelint, optional

Level of subdivision of the faces.

quadsbool, optional

Flag to tell the source to generate either a quad or two triangle for a set of four points. Default True.

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)
../../../_images/pyvista-Box-1_00_00.png