pyvista.BoxSource#

class BoxSource(bounds=(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0), level=0, quads=True)[source]#

Create a box source.

Added in version 0.44.

Parameters:
boundssequence[float], default: (-1.0, 1.0, -1.0, 1.0, -1.0, 1.0)

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

levelint, default: 0

Level of subdivision of the faces.

quadsbool, default: True

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

Methods

Attributes

BoxSource.bounds

Return or set the bounding box of the cube.

BoxSource.level

Get level of subdivision of the faces.

BoxSource.output

Get the output data object for a port on this algorithm.

BoxSource.quads

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